Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.001341/0.001341, allocations: 73.88 kB / 20.66 MB, free: 3.84 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.001666/0.001666, 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 1.018/1.018, allocations: 177.1 MB / 204.5 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:34:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:42:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7781/0.7781, allocations: 154.9 MB / 415.9 MB, free: 256 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0.875 kB / 0.5219 GB, free: 1.539 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.802e-05/1.943e-05, allocations: 2.312 kB / 0.5219 GB, free: 1.535 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001291/0.00131, allocations: 0.6586 MB / 0.5225 GB, free: 0.8984 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.002488, allocations: 1.127 MB / 0.5236 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.375e-05/0.002531, allocations: 0 / 0.5236 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 2.9e-05/0.00256, allocations: 3.938 kB / 0.5236 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 6.175e-05/0.002622, allocations: 15.86 kB / 0.5236 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.000249/0.002871, allocations: 43.83 kB / 0.5237 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 8.333e-05/0.002954, allocations: 51.84 kB / 0.5237 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 7.378e-05/0.003028, allocations: 8 kB / 0.5237 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 7.206e-05/0.0031, allocations: 39.84 kB / 0.5238 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 3.969e-05/0.00314, allocations: 11.97 kB / 0.5238 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.003153, allocations: 4.531 kB / 0.5238 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 5.321e-05/0.003206, allocations: 19.98 kB / 0.5238 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 2.189e-05/0.003228, allocations: 20.47 kB / 0.5238 GB, free: 15.55 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 1.92e-05/0.003247, allocations: 8.562 kB / 0.5238 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.003359, allocations: 59.8 kB / 0.5239 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.003362, allocations: 0.9688 kB / 0.5239 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.32e-07/0.003362, allocations: 0 / 0.5239 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.003366, allocations: 5.469 kB / 0.5239 GB, free: 15.48 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003671/0.003733, allocations: 388.5 kB / 0.5243 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.003765, allocations: 8.719 kB / 0.5243 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.522e-05/0.00384, allocations: 12.83 kB / 0.5243 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.176e-05/0.003912, allocations: 113.1 kB / 0.5244 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.003923, allocations: 4.375 kB / 0.5244 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-06/0.003931, allocations: 6.344 kB / 0.5244 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.631e-05/0.004028, allocations: 62.94 kB / 0.5245 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.004034, allocations: 192 / 0.5245 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.004043, allocations: 8.359 kB / 0.5245 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.004048, allocations: 384 / 0.5245 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.392e-05/0.004072, allocations: 8.469 kB / 0.5245 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002572/0.004329, allocations: 261 kB / 0.5247 GB, free: 14.53 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 6.498e-05/0.004394, allocations: 39.67 kB / 0.5248 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.77e-05/0.004412, allocations: 21.25 kB / 0.5248 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.004425, allocations: 0 / 0.5248 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.551e-05/0.00449, allocations: 64.98 kB / 0.5248 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.004491, allocations: 0 / 0.5248 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=7): time 0.0001435/0.004635, allocations: 86.31 kB / 0.5249 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/0.004667, allocations: 51.41 kB / 0.525 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.661e-05/0.004734, allocations: 170.8 kB / 0.5251 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.004746, allocations: 25.7 kB / 0.5252 GB, free: 14.01 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 4.331e-05/0.004789, allocations: 141.8 kB / 0.5253 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.004807, allocations: 11.89 kB / 0.5253 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.264e-05/0.004839, allocations: 31.36 kB / 0.5253 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.004942, allocations: 0.4884 MB / 0.5258 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.641e-05/0.004959, allocations: 7.984 kB / 0.5258 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.617e-05/0.004995, allocations: 54.36 kB / 0.5259 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.968e-05/0.005055, allocations: 70.98 kB / 0.5259 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.005056, allocations: 1.906 kB / 0.5259 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 9.08e-05/0.005147, allocations: 89.48 kB / 0.526 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.00516, allocations: 8 kB / 0.526 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.005165, allocations: 6.688 kB / 0.526 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.845e-06/0.005173, allocations: 0 / 0.526 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.775e-05/0.005241, allocations: 15.98 kB / 0.5261 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.005245, allocations: 4 kB / 0.5261 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.758e-05/0.005273, allocations: 4 kB / 0.5261 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.005279, allocations: 0 / 0.5261 GB, free: 13.02 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 6.975e-05/0.005348, allocations: 171.9 kB / 0.5262 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.168e-05/0.00536, allocations: 11.94 kB / 0.5262 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.441e-05/0.005454, allocations: 74.36 kB / 0.5263 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.005457, allocations: 3.984 kB / 0.5263 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.005458, allocations: 0 / 0.5263 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.005463, allocations: 4.938 kB / 0.5263 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.005648, allocations: 302 kB / 0.5266 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.00565, allocations: 0.8125 kB / 0.5266 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.778e-05/0.005678, allocations: 4 kB / 0.5266 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.00568, allocations: 8.875 kB / 0.5266 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.709e-06/0.005685, allocations: 0 / 0.5266 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.005686, allocations: 3.984 kB / 0.5266 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.005687, allocations: 1.219 kB / 0.5266 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001023/0.00579, allocations: 223.8 kB / 0.5268 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.51e-06/0.005795, allocations: 4 kB / 0.5268 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.005808, allocations: 4.562 kB / 0.5269 GB, free: 12.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.409e-05/0.005852, allocations: 8.891 kB / 0.5269 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.559e-05/0.005878, allocations: 7.984 kB / 0.5269 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.005887, allocations: 4.594 kB / 0.5269 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 3.599e-05/0.005923, allocations: 130.2 kB / 0.527 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.005923, allocations: 0 / 0.527 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001649/0.006088, allocations: 12 kB / 0.527 GB, free: 12 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.894e-05/0.006187, allocations: 103.2 kB / 0.5271 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 8.407e-05/0.006271, allocations: 39.61 kB / 0.5271 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.183e-06/0.006272, allocations: 0 / 0.5271 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 2.848e-05/0.006301, allocations: 26.78 kB / 0.5272 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000176/0.006477, allocations: 19.88 kB / 0.5272 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003328/0.006809, allocations: 148.2 kB / 0.5273 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.604e-05/0.006845, allocations: 59.34 kB / 0.5274 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.165e-05/0.006867, allocations: 5.812 kB / 0.5274 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.154e-05/0.006919, allocations: 78.19 kB / 0.5275 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of SimCode: time 5.01e-07/0.006919, allocations: 0 / 0.5275 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of Templates: time 0.002769/0.009688, allocations: 0.9837 MB / 0.5284 GB, free: 10.54 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.7018680018372834]