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.0008546/0.0008546, allocations: 100.3 kB / 19.71 MB, free: 440 kB / 13.93 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.001014/0.001014, allocations: 216.2 kB / 23 MB, free: 2.977 MB / 13.93 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 1.009/1.009, allocations: 230.6 MB / 256.8 MB, free: 9.613 MB / 202.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.06534/0.06534, allocations: 17.16 MB / 330.4 MB, free: 0.8086 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: Bodylight requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 67.89 kB / 460.7 MB, free: 27.16 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09243/0.09367, allocations: 57.78 MB / 0.5063 GB, free: 1.289 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Blocks.Signals.Testers.TestSignalsZOH): time 0.00235/0.09602, allocations: 1.753 MB / 0.508 GB, free: 15.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.0972, allocations: 0.5999 MB / 0.5086 GB, free: 14.91 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.385e-05/0.09728, allocations: 4 kB / 0.5086 GB, free: 14.91 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 4.132e-05/0.09732, allocations: 15.8 kB / 0.5086 GB, free: 14.89 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.0975, allocations: 31.67 kB / 0.5086 GB, free: 14.86 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002233/0.09772, allocations: 91.81 kB / 0.5087 GB, free: 14.77 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000179/0.0979, allocations: 171.5 kB / 0.5089 GB, free: 14.61 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.09803, allocations: 33.8 kB / 0.5089 GB, free: 14.57 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.09818, allocations: 79.75 kB / 0.509 GB, free: 14.5 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.948e-05/0.09827, allocations: 67.59 kB / 0.5091 GB, free: 14.43 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.247e-05/0.0983, allocations: 16 kB / 0.5091 GB, free: 14.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.957e-05/0.09835, allocations: 23.94 kB / 0.5091 GB, free: 14.39 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.22e-05/0.09838, allocations: 39.84 kB / 0.5091 GB, free: 14.35 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.692e-05/0.09845, allocations: 71.64 kB / 0.5092 GB, free: 14.28 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001813/0.09863, allocations: 175.2 kB / 0.5094 GB, free: 14.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.09863, allocations: 0 / 0.5094 GB, free: 14.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.09863, allocations: 4 kB / 0.5094 GB, free: 14.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.09864, allocations: 0 / 0.5094 GB, free: 14.11 MB / 378.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.0006822/0.09932, allocations: 481.2 kB / 0.5098 GB, free: 13.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.09936, allocations: 8.031 kB / 0.5098 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.09953, allocations: 48.75 kB / 0.5099 GB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.09974, allocations: 158.2 kB / 0.51 GB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.09985, allocations: 127.3 kB / 0.5102 GB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.09988, allocations: 20.33 kB / 0.5102 GB, free: 13.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00025/0.1001, allocations: 181.5 kB / 0.5104 GB, free: 13.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.1001, allocations: 0 / 0.5104 GB, free: 13.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.834e-05/0.1002, allocations: 7.984 kB / 0.5104 GB, free: 13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.1002, allocations: 4 kB / 0.5104 GB, free: 13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.1004, allocations: 131.9 kB / 0.5105 GB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005642/0.1009, allocations: 435.8 kB / 0.5109 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.1011, allocations: 138.5 kB / 0.511 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.1012, allocations: 83.78 kB / 0.5111 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.1013, allocations: 7.938 kB / 0.5111 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.1015, allocations: 171.2 kB / 0.5113 GB, free: 12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.313e-06/0.1015, allocations: 0 / 0.5113 GB, free: 12 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.001051/0.1025, allocations: 0.5788 MB / 0.5119 GB, free: 11.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.1026, allocations: 67.33 kB / 0.5119 GB, free: 11.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.1027, allocations: 154.4 kB / 0.5121 GB, free: 11.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.1027, allocations: 33.69 kB / 0.5121 GB, free: 11.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.527e-05/0.1028, allocations: 116.6 kB / 0.5122 GB, free: 11.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.1028, allocations: 83.34 kB / 0.5123 GB, free: 10.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.284e-05/0.1029, allocations: 49.69 kB / 0.5123 GB, free: 10.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.357e-05/0.1029, allocations: 330.8 kB / 0.5127 GB, free: 10.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.1031, allocations: 76.23 kB / 0.5127 GB, free: 10.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.1032, allocations: 121.6 kB / 0.5128 GB, free: 10.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007285/0.1039, allocations: 452.9 kB / 0.5133 GB, free: 9.875 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1039, allocations: 0 / 0.5133 GB, free: 9.875 MB / 378.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003946/0.1043, allocations: 316.8 kB / 0.5136 GB, free: 9.559 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.1043, allocations: 4 kB / 0.5136 GB, free: 9.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.1044, allocations: 4 kB / 0.5136 GB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.435e-05/0.1044, allocations: 20.84 kB / 0.5136 GB, free: 9.527 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.1046, allocations: 55.91 kB / 0.5137 GB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/0.1056, allocations: 1.387 MB / 0.515 GB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.522e-05/0.1057, allocations: 24 kB / 0.515 GB, free: 7.961 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.1057, allocations: 8 kB / 0.515 GB, free: 7.953 MB / 378.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.0001511/0.1059, allocations: 163.9 kB / 0.5152 GB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.95e-05/0.1059, allocations: 19.86 kB / 0.5152 GB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004443/0.1063, allocations: 353.8 kB / 0.5156 GB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.1064, allocations: 4 kB / 0.5156 GB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.1064, allocations: 0 / 0.5156 GB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.1064, allocations: 3.984 kB / 0.5156 GB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006923/0.1071, allocations: 0.6085 MB / 0.5162 GB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.1071, allocations: 0 / 0.5162 GB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001816/0.1072, allocations: 47.97 kB / 0.5162 GB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.678e-05/0.1073, allocations: 24.78 kB / 0.5162 GB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.1073, allocations: 11.94 kB / 0.5162 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007796/0.1081, allocations: 1.386 MB / 0.5176 GB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1081, allocations: 0 / 0.5176 GB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007582/0.1089, allocations: 0.5484 MB / 0.5181 GB, free: 4.617 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.369e-05/0.1089, allocations: 15.91 kB / 0.5181 GB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.1089, allocations: 8.031 kB / 0.5182 GB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.109, allocations: 15.98 kB / 0.5182 GB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.379e-05/0.1091, allocations: 39.88 kB / 0.5182 GB, free: 4.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/0.1091, allocations: 15.98 kB / 0.5182 GB, free: 4.523 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.439e-05/0.1092, allocations: 115.2 kB / 0.5183 GB, free: 4.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1092, allocations: 0 / 0.5183 GB, free: 4.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003372/0.1126, allocations: 44 kB / 0.5184 GB, free: 4.367 MB / 378.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 0.0001089/0.1127, allocations: 113.5 kB / 0.5185 GB, free: 4.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005889/0.1133, allocations: 350.4 kB / 0.5188 GB, free: 3.895 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1133, allocations: 0 / 0.5188 GB, free: 3.895 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003023/0.1136, allocations: 242.5 kB / 0.519 GB, free: 3.645 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.1138, allocations: 15.98 kB / 0.5191 GB, free: 3.629 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000665/0.1145, allocations: 468.4 kB / 0.5195 GB, free: 3.133 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.254e-05/0.1146, allocations: 129.2 kB / 0.5196 GB, free: 2.984 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.02e-05/0.1147, allocations: 23.42 kB / 0.5197 GB, free: 2.961 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1147, allocations: 0 / 0.5197 GB, free: 2.961 MB / 378.7 MB Notification: Performance of Templates: time 0.01052/0.1252, allocations: 3.304 MB / 0.5229 GB, free: 15.66 MB / 394.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: 5.032066950574517]