Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.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.001058/0.001058, allocations: 88.42 kB / 19.93 MB, free: 4.613 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.0009821/0.0009821, allocations: 173.9 kB / 23.21 MB, free: 1.332 MB / 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.9321/0.9321, allocations: 177.1 MB / 203.5 MB, free: 5.746 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.05487/0.05487, allocations: 12.74 MB / 272.7 MB, free: 0.4961 MB / 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.Signals.Testers.TestSignalsZOH,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH") translateModel(Bodylight.Blocks.Signals.Testers.TestSignalsZOH,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.153e-06/1.153e-06, allocations: 0 / 403.1 MB, free: 8.887 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.411e-05/1.526e-05, allocations: 2.281 kB / 403.1 MB, free: 8.883 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Blocks.Signals.Testers.TestSignalsZOH): time 0.00192/0.001935, allocations: 1.766 MB / 404.8 MB, free: 7.105 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006776/0.002612, allocations: 0.5998 MB / 405.4 MB, free: 6.5 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.302e-05/0.002675, allocations: 3.938 kB / 405.5 MB, free: 6.496 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 2.815e-05/0.002704, allocations: 11.81 kB / 405.5 MB, free: 6.484 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001177/0.002821, allocations: 39.66 kB / 405.5 MB, free: 6.445 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000164/0.002985, allocations: 87.75 kB / 405.6 MB, free: 6.359 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001375/0.003123, allocations: 167.5 kB / 405.8 MB, free: 6.195 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.28e-05/0.003216, allocations: 37.77 kB / 405.8 MB, free: 6.16 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.003362, allocations: 107.7 kB / 405.9 MB, free: 6.055 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.873e-05/0.003431, allocations: 63.72 kB / 406 MB, free: 5.992 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.058e-05/0.003452, allocations: 16 kB / 406 MB, free: 5.977 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.626e-05/0.003488, allocations: 23.98 kB / 406 MB, free: 5.953 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.861e-05/0.003517, allocations: 43.83 kB / 406 MB, free: 5.91 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.677e-05/0.003563, allocations: 51.83 kB / 406.1 MB, free: 5.859 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.003716, allocations: 171.5 kB / 406.3 MB, free: 5.691 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.003718, allocations: 7.922 kB / 406.3 MB, free: 5.684 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.003719, allocations: 0 / 406.3 MB, free: 5.684 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.427e-06/0.003722, allocations: 0 / 406.3 MB, free: 5.684 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0005049/0.004227, allocations: 485.2 kB / 406.7 MB, free: 5.168 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.726e-05/0.004254, allocations: 11.98 kB / 406.7 MB, free: 5.156 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.004384, allocations: 48.77 kB / 406.8 MB, free: 5.109 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.004532, allocations: 158.1 kB / 407 MB, free: 4.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.691e-05/0.004609, allocations: 127.4 kB / 407.1 MB, free: 4.781 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.468e-05/0.004633, allocations: 16.38 kB / 407.1 MB, free: 4.766 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002225/0.004856, allocations: 175.5 kB / 407.3 MB, free: 4.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.004865, allocations: 4.188 kB / 407.3 MB, free: 4.586 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.00488, allocations: 8.125 kB / 407.3 MB, free: 4.578 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.004884, allocations: 7.938 kB / 407.3 MB, free: 4.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/0.005077, allocations: 131.9 kB / 407.4 MB, free: 4.441 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004974/0.005574, allocations: 431.9 kB / 407.8 MB, free: 3.988 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001721/0.005747, allocations: 142.5 kB / 408 MB, free: 3.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.005866, allocations: 79.47 kB / 408.1 MB, free: 3.762 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.005893, allocations: 8 kB / 408.1 MB, free: 3.754 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/0.006084, allocations: 163.2 kB / 408.2 MB, free: 3.582 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.252e-06/0.006085, allocations: 0 / 408.2 MB, free: 3.582 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.0009572/0.007042, allocations: 0.5905 MB / 408.8 MB, free: 2.984 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.569e-05/0.007068, allocations: 55.41 kB / 408.9 MB, free: 2.918 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.309e-05/0.007151, allocations: 158.3 kB / 409 MB, free: 2.754 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.007171, allocations: 33.7 kB / 409 MB, free: 2.715 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.454e-05/0.007215, allocations: 120.6 kB / 409.2 MB, free: 2.594 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.169e-05/0.007257, allocations: 79.38 kB / 409.2 MB, free: 2.516 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.928e-05/0.007306, allocations: 45.69 kB / 409.3 MB, free: 2.465 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.969e-05/0.007376, allocations: 330.8 kB / 409.6 MB, free: 2.133 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.007496, allocations: 80.22 kB / 409.7 MB, free: 2.055 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.007634, allocations: 125.7 kB / 409.8 MB, free: 1.914 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006951/0.008329, allocations: 452.9 kB / 410.3 MB, free: 1.453 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.00833, allocations: 0 / 410.3 MB, free: 1.453 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003747/0.008705, allocations: 301.2 kB / 410.6 MB, free: 1.152 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.008716, allocations: 7.938 kB / 410.6 MB, free: 1.145 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.008722, allocations: 7.984 kB / 410.6 MB, free: 1.137 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.598e-05/0.008788, allocations: 16.86 kB / 410.6 MB, free: 1.117 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.008926, allocations: 67.95 kB / 410.6 MB, free: 1.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1277/0.1366, allocations: 1.373 MB / 412 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.1368, allocations: 25.25 kB / 412 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.1368, allocations: 8 kB / 412.1 MB, free: 20.25 MB / 330.7 MB Warning: Assuming fixed start value for the following 8 variables: zOH.y:DISCRETE(flow=false fixed = true ) \"Connector of Real output signal\" type: Real maxZOH.y:DISCRETE(flow=false fixed = true ) \"Connector of Real output signal\" type: Real minZOH.y:DISCRETE(flow=false fixed = true ) \"Connector of Real output signal\" type: Real maxZOH.yt:VARIABLE(fixed = true stateSelect=StateSelect.always protected = true ) \"temporary y\" type: Real minZOH.yt:VARIABLE(fixed = true stateSelect=StateSelect.always protected = true ) \"temporary y\" type: Real max1.yhold:DISCRETE(fixed = true protected = true ) \"holding the extreme value\" type: Real min1.yMinCriticalPoints:DISCRETE(fixed = true protected = true ) type: Real continuousMeanValue.y:VARIABLE(flow=false fixed = true stateSelect=StateSelect.always ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.zOH.y,zOH.y,$whenCondition4,$whenCondition2,reset,$whenCondition1,$PRE.maxZOH.y,$PRE.minZOH.y,maxZOH.y,minZOH.y,$PRE.max1.yhold,$PRE.min1.yMinCriticalPoints,max1.yhold,min1.yMinCriticalPoints,$whenCondition3,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001524/0.137, allocations: 165.7 kB / 412.2 MB, free: 20.12 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.42e-05/0.137, allocations: 19.67 kB / 412.2 MB, free: 20.12 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004766/0.1375, allocations: 350.7 kB / 412.6 MB, free: 20.07 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1375, allocations: 6.859 kB / 412.6 MB, free: 20.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.1375, allocations: 6.75 kB / 412.6 MB, free: 20.07 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1375, allocations: 1.312 kB / 412.6 MB, free: 20.07 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006148/0.1381, allocations: 0.6064 MB / 413.2 MB, free: 19.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1381, allocations: 0 / 413.2 MB, free: 19.83 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.1382, allocations: 44.7 kB / 413.2 MB, free: 19.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-05/0.1383, allocations: 22.11 kB / 413.3 MB, free: 19.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.1383, allocations: 10.31 kB / 413.3 MB, free: 19.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004399/0.1387, allocations: 1.383 MB / 414.7 MB, free: 18.46 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.1387, allocations: 0.7031 kB / 414.7 MB, free: 18.46 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005578/0.1393, allocations: 0.5464 MB / 415.2 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.025e-05/0.1393, allocations: 11.7 kB / 415.2 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.1393, allocations: 8.016 kB / 415.2 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.295e-05/0.1394, allocations: 26.95 kB / 415.2 MB, free: 18.19 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.379e-05/0.1395, allocations: 37.47 kB / 415.3 MB, free: 18.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.1395, allocations: 10.5 kB / 415.3 MB, free: 18.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.848e-05/0.1396, allocations: 122.1 kB / 415.4 MB, free: 18.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1396, allocations: 0 / 415.4 MB, free: 18.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002417/0.1398, allocations: 44.48 kB / 415.5 MB, free: 18.09 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (continuousMeanValue.y,minZOH.yt,maxZOH.yt) * Number of discrete variables: 11 (reset,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,zOH.y,min1.yMinCriticalPoints,max1.yhold,minZOH.y,maxZOH.y) * Number of discrete states: 2 (min1.yMinCriticalPoints,max1.yhold) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 7.77e-05/0.1399, allocations: 112.2 kB / 415.6 MB, free: 17.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004409/0.1403, allocations: 353.3 kB / 415.9 MB, free: 17.81 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1403, allocations: 0.6094 kB / 415.9 MB, free: 17.81 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002119/0.1405, allocations: 240.5 kB / 416.1 MB, free: 17.67 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.1407, allocations: 15.19 kB / 416.2 MB, free: 17.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004818/0.1412, allocations: 444.2 kB / 416.6 MB, free: 17.38 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.446e-05/0.1412, allocations: 123.2 kB / 416.7 MB, free: 17.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.88e-05/0.1413, allocations: 25.94 kB / 416.7 MB, free: 17.3 MB / 330.7 MB Notification: Performance of SimCode: time 4.21e-07/0.1413, allocations: 0.9062 kB / 416.7 MB, free: 17.3 MB / 330.7 MB Notification: Performance of Templates: time 0.003861/0.1452, allocations: 3.325 MB / 420.1 MB, free: 17.05 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.pipe ; mkfifo Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.pipe ; head -c 1048576 < Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.pipe >> ../files/Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.sim & ./Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH > Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.597178646828979]