Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds") translateModel(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001474/0.001475, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001476/0.001476, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, allocations: 227.4 MB / 246.9 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2233/0.2233, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 79.86 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4714/0.4728, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003024/0.4759, allocations: 1.706 MB / 0.5327 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004594/0.4764, allocations: 169.6 kB / 0.5328 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.693e-05/0.4765, allocations: 1.812 kB / 0.5328 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.802e-05/0.4765, allocations: 7.875 kB / 0.5328 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.973e-05/0.4766, allocations: 13.64 kB / 0.5328 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003856/0.477, allocations: 107 kB / 0.5329 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001842/0.4772, allocations: 100.6 kB / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.4773, allocations: 38.62 kB / 0.5331 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.904e-05/0.4774, allocations: 43.69 kB / 0.5331 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.328e-05/0.4775, allocations: 41.47 kB / 0.5332 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.968e-05/0.4775, allocations: 12.19 kB / 0.5332 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.25e-05/0.4776, allocations: 8.25 kB / 0.5332 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.24e-05/0.4776, allocations: 18.67 kB / 0.5332 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.027e-05/0.4777, allocations: 45.41 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.4779, allocations: 94.81 kB / 0.5333 GB, free: 11.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.4779, allocations: 0 / 0.5333 GB, free: 11.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4779, allocations: 1.375 kB / 0.5333 GB, free: 11.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.4779, allocations: 0 / 0.5333 GB, free: 11.74 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008013/0.4787, allocations: 441.1 kB / 0.5337 GB, free: 11.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.4787, allocations: 9.625 kB / 0.5338 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.175e-05/0.4788, allocations: 14.25 kB / 0.5338 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.4791, allocations: 201.9 kB / 0.534 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.4791, allocations: 7.062 kB / 0.534 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.4791, allocations: 8.5 kB / 0.534 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003824/0.4795, allocations: 150.5 kB / 0.5341 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.4796, allocations: 192 / 0.5341 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.418e-05/0.4796, allocations: 9.312 kB / 0.5341 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.4796, allocations: 1.375 kB / 0.5341 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003917/0.48, allocations: 113.7 kB / 0.5342 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000773/0.4808, allocations: 0.5443 MB / 0.5348 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004353/0.4812, allocations: 133.1 kB / 0.5349 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.4814, allocations: 58.59 kB / 0.535 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.4815, allocations: 4.734 kB / 0.535 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.4815, allocations: 43.77 kB / 0.535 GB, free: 10.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.183e-06/0.4815, allocations: 0 / 0.535 GB, free: 10.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007154/0.4822, allocations: 184.9 kB / 0.5352 GB, free: 10.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.873e-05/0.4823, allocations: 105 kB / 0.5353 GB, free: 9.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.4825, allocations: 133.5 kB / 0.5354 GB, free: 9.859 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.4825, allocations: 30.83 kB / 0.5354 GB, free: 9.824 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.737e-05/0.4826, allocations: 104.5 kB / 0.5355 GB, free: 9.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.006e-05/0.4826, allocations: 26.92 kB / 0.5356 GB, free: 9.699 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.799e-05/0.4827, allocations: 32.05 kB / 0.5356 GB, free: 9.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.4828, allocations: 320.8 kB / 0.5359 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.483, allocations: 51.25 kB / 0.5359 GB, free: 9.328 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.4833, allocations: 93.44 kB / 0.536 GB, free: 9.254 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003715/0.4837, allocations: 108.8 kB / 0.5361 GB, free: 9.191 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.4837, allocations: 4.031 kB / 0.5361 GB, free: 9.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000464/0.4841, allocations: 157.5 kB / 0.5363 GB, free: 9.098 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.4842, allocations: 5.156 kB / 0.5363 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.4842, allocations: 1.094 kB / 0.5363 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.4842, allocations: 1.562 kB / 0.5363 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.4844, allocations: 32.59 kB / 0.5363 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.4844, allocations: 1.438 kB / 0.5363 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.4846, allocations: 35.88 kB / 0.5364 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.4846, allocations: 2.344 kB / 0.5364 GB, free: 9.062 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * 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 0.0001356/0.4847, allocations: 119.9 kB / 0.5365 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/0.4848, allocations: 8.812 kB / 0.5365 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.853e-05/0.4848, allocations: 23.61 kB / 0.5365 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.4848, allocations: 1.5 kB / 0.5365 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4849, allocations: 0 / 0.5365 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.4849, allocations: 3.938 kB / 0.5365 GB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.4851, allocations: 203.4 kB / 0.5367 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.4851, allocations: 0 / 0.5367 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.4852, allocations: 27.03 kB / 0.5367 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.4852, allocations: 0 / 0.5367 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.4853, allocations: 5.25 kB / 0.5367 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.4853, allocations: 1.031 kB / 0.5367 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.4853, allocations: 4 kB / 0.5367 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004672/0.4857, allocations: 237.3 kB / 0.537 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.778e-05/0.4858, allocations: 83.67 kB / 0.5371 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.4858, allocations: 1.438 kB / 0.5371 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/0.486, allocations: 30.16 kB / 0.5371 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.134e-05/0.4861, allocations: 7.547 kB / 0.5371 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.258e-06/0.4861, allocations: 10.78 kB / 0.5371 GB, free: 8.355 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.357e-05/0.4862, allocations: 112.7 kB / 0.5372 GB, free: 8.262 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4862, allocations: 3.938 kB / 0.5372 GB, free: 8.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002434/0.4864, allocations: 22.44 kB / 0.5372 GB, free: 8.25 MB / 398.1 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 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.0001196/0.4865, allocations: 95.84 kB / 0.5373 GB, free: 8.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004627/0.487, allocations: 117 kB / 0.5374 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.487, allocations: 0 / 0.5374 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002022/0.4872, allocations: 63.75 kB / 0.5375 GB, free: 8.086 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.4876, allocations: 29.23 kB / 0.5375 GB, free: 8.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005909/0.4882, allocations: 216.5 kB / 0.5377 GB, free: 7.902 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.4885, allocations: 0.6975 MB / 0.5384 GB, free: 7.195 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.787e-05/0.4885, allocations: 11.95 kB / 0.5384 GB, free: 7.188 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.468e-05/0.4886, allocations: 13.66 kB / 0.5384 GB, free: 7.18 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4886, allocations: 0 / 0.5384 GB, free: 7.18 MB / 398.1 MB Notification: Performance of Templates: time 0.004294/0.4929, allocations: 1.437 MB / 0.5398 GB, free: 6.453 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1)