Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Blocks.BooleanPulseN.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009497/0.0009497, allocations: 73.88 kB / 20.66 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009825/0.0009825, allocations: 173 kB / 24.06 MB, free: 452 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9829/0.9829, allocations: 177.1 MB / 204.5 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo): time 0.05555/0.05555, allocations: 12.76 MB / 273.8 MB, free: 100 kB / 250.7 MB " [Timeout remaining time 180] Using package Bodylight with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Bodylight.Blocks.BooleanPulseN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Blocks.BooleanPulseN") translateModel(Bodylight.Blocks.BooleanPulseN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Blocks.BooleanPulseN") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 3.938 kB / 347.2 MB, free: 1.676 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.014e-05/3.194e-05, allocations: 4.844 kB / 347.2 MB, free: 1.672 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Blocks.mo:1663:5-1664:39:writable] Warning: Parameter period has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(Bodylight.Blocks.BooleanPulseN): time 0.002647/0.002679, allocations: 1.363 MB / 348.6 MB, free: 304 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008067/0.003486, allocations: 446.8 kB / 349 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.148e-05/0.003518, allocations: 0 / 349 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.463e-05/0.003552, allocations: 0 / 349 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.105e-05/0.003643, allocations: 3.938 kB / 349 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001544/0.003798, allocations: 15.92 kB / 349 MB, free: 15.84 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.808e-05/0.003866, allocations: 31.86 kB / 349 MB, free: 15.8 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.484e-05/0.00391, allocations: 7.922 kB / 349.1 MB, free: 15.8 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.858e-05/0.003999, allocations: 19.92 kB / 349.1 MB, free: 15.78 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.783e-05/0.004067, allocations: 7.984 kB / 349.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.004091, allocations: 0 / 349.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.145e-05/0.004102, allocations: 4 kB / 349.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.194e-05/0.004124, allocations: 0 / 349.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.194e-05/0.004156, allocations: 11.94 kB / 349.1 MB, free: 15.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.297e-05/0.004239, allocations: 15.95 kB / 349.1 MB, free: 15.74 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.004241, allocations: 4 kB / 349.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.004242, allocations: 0 / 349.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.004246, allocations: 4 kB / 349.1 MB, free: 15.73 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004633/0.004709, allocations: 368.6 kB / 349.5 MB, free: 15.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.004752, allocations: 11.98 kB / 349.5 MB, free: 15.32 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.843e-05/0.00479, allocations: 4.938 kB / 349.5 MB, free: 15.32 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.869e-05/0.004889, allocations: 116.6 kB / 349.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.004903, allocations: 384 / 349.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.004912, allocations: 384 / 349.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.806e-05/0.005, allocations: 46.17 kB / 349.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.005008, allocations: 192 / 349.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.005016, allocations: 4.375 kB / 349.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.005025, allocations: 7.938 kB / 349.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.588e-05/0.005051, allocations: 7.984 kB / 349.7 MB, free: 15.11 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001198/0.00517, allocations: 93.27 kB / 349.8 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.541e-05/0.005236, allocations: 35.09 kB / 349.8 MB, free: 14.95 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.064e-05/0.005257, allocations: 11.69 kB / 349.8 MB, free: 14.93 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.082e-06/0.005263, allocations: 0 / 349.8 MB, free: 14.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001192/0.005382, allocations: 69.06 kB / 349.9 MB, free: 14.85 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.693e-06/0.005383, allocations: 0 / 349.9 MB, free: 14.85 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001571/0.005541, allocations: 53.88 kB / 349.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.00558, allocations: 51.41 kB / 350 MB, free: 14.73 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.133e-05/0.005671, allocations: 177.8 kB / 350.2 MB, free: 14.54 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.005687, allocations: 33.64 kB / 350.2 MB, free: 14.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.399e-05/0.005731, allocations: 126.9 kB / 350.3 MB, free: 14.37 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.005754, allocations: 19.86 kB / 350.3 MB, free: 14.35 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.225e-05/0.005797, allocations: 23.38 kB / 350.4 MB, free: 14.32 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.005937, allocations: 496.1 kB / 350.8 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.803e-05/0.005955, allocations: 7.984 kB / 350.8 MB, free: 13.81 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.603e-05/0.005981, allocations: 19.38 kB / 350.9 MB, free: 13.79 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.458e-05/0.006046, allocations: 43.3 kB / 350.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.006048, allocations: 0 / 350.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.099e-05/0.006139, allocations: 57.62 kB / 351 MB, free: 13.67 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.006155, allocations: 8 kB / 351 MB, free: 13.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.006162, allocations: 384 / 351 MB, free: 13.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.006175, allocations: 0 / 351 MB, free: 13.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.488e-05/0.00623, allocations: 8 kB / 351 MB, free: 13.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.006239, allocations: 11.88 kB / 351 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.228e-05/0.006292, allocations: 7.984 kB / 351 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.067e-06/0.006296, allocations: 0 / 351 MB, free: 13.64 MB / 282.7 MB Warning: Assuming fixed start value for the following 1 variables: count:DISCRETE(start = 0.0 fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.count,count,$whenCondition1,pulseStart,$PRE.pulseStart,y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.006423, allocations: 160.6 kB / 351.2 MB, free: 13.47 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.581e-05/0.006439, allocations: 11.95 kB / 351.2 MB, free: 13.46 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.591e-05/0.006465, allocations: 3.688 kB / 351.2 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.006467, allocations: 0 / 351.2 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.006471, allocations: 3.984 kB / 351.2 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.006475, allocations: 3.938 kB / 351.2 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.315e-05/0.006569, allocations: 101.2 kB / 351.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.00657, allocations: 0 / 351.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.721e-06/0.006576, allocations: 0 / 351.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.006578, allocations: 4 kB / 351.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.006585, allocations: 3.984 kB / 351.3 MB, free: 13.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.006587, allocations: 0 / 351.3 MB, free: 13.31 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.006588, allocations: 4 kB / 351.3 MB, free: 13.31 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001182/0.006706, allocations: 92.31 kB / 351.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.133e-05/0.006718, allocations: 3.953 kB / 351.4 MB, free: 13.19 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.006735, allocations: 4 kB / 351.4 MB, free: 13.19 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.318e-05/0.006778, allocations: 3.984 kB / 351.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.00682, allocations: 7.984 kB / 351.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.006826, allocations: 4 kB / 351.4 MB, free: 13.17 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.676e-05/0.006873, allocations: 127.1 kB / 351.5 MB, free: 13.05 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006873, allocations: 0 / 351.5 MB, free: 13.05 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002211/0.007094, allocations: 8 kB / 351.5 MB, free: 13.04 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,count,y,pulseStart) * Number of discrete states: 1 (count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.03e-05/0.007184, allocations: 99.17 kB / 351.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.303e-05/0.007268, allocations: 35.83 kB / 351.7 MB, free: 12.89 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.007269, allocations: 0 / 351.7 MB, free: 12.89 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.439e-05/0.007303, allocations: 23.77 kB / 351.7 MB, free: 12.87 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.007506, allocations: 7.984 kB / 351.7 MB, free: 12.86 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002985/0.007805, allocations: 144 kB / 351.8 MB, free: 12.68 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.183e-05/0.007847, allocations: 59.34 kB / 351.9 MB, free: 12.61 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.026e-05/0.007917, allocations: 82.19 kB / 352 MB, free: 12.52 MB / 282.7 MB Notification: Performance of SimCode: time 7.61e-07/0.007918, allocations: 0 / 352 MB, free: 12.52 MB / 282.7 MB Notification: Performance of Templates: time 0.001828/0.009745, allocations: 0.6513 MB / 352.6 MB, free: 11.88 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Blocks.BooleanPulseN.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Blocks.BooleanPulseN.pipe ; mkfifo Bodylight_Bodylight.Blocks.BooleanPulseN.pipe ; head -c 1048576 < Bodylight_Bodylight.Blocks.BooleanPulseN.pipe >> ../files/Bodylight_Bodylight.Blocks.BooleanPulseN.sim & ./Bodylight_Bodylight.Blocks.BooleanPulseN > Bodylight_Bodylight.Blocks.BooleanPulseN.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5017922492697835]