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.001621/0.001621, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002089/0.00209, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2223/0.2223, allocations: 46.11 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 75.88 kB / 482 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3578, allocations: 62.42 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.00288/0.3607, allocations: 1.732 MB / 0.5333 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003959/0.3611, allocations: 161.8 kB / 0.5335 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.502e-05/0.3612, allocations: 1.375 kB / 0.5335 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.617e-05/0.3612, allocations: 9.25 kB / 0.5335 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.236e-05/0.3613, allocations: 9.25 kB / 0.5335 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003405/0.3617, allocations: 104.7 kB / 0.5336 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001702/0.3618, allocations: 106.4 kB / 0.5337 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.362, allocations: 37.75 kB / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.579e-05/0.3621, allocations: 48.33 kB / 0.5338 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.735e-05/0.3621, allocations: 41.41 kB / 0.5338 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.3622, allocations: 8.25 kB / 0.5338 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.672e-05/0.3622, allocations: 8.25 kB / 0.5338 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.766e-05/0.3622, allocations: 18.67 kB / 0.5339 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.01e-05/0.3623, allocations: 41.42 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.3624, allocations: 98.8 kB / 0.534 GB, free: 11.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3624, allocations: 0 / 0.534 GB, free: 11.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3624, allocations: 1.375 kB / 0.534 GB, free: 11.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.3624, allocations: 4 kB / 0.534 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.0006606/0.3631, allocations: 437.9 kB / 0.5344 GB, free: 11.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.3632, allocations: 8.469 kB / 0.5344 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.631e-05/0.3632, allocations: 19.09 kB / 0.5344 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002293/0.3634, allocations: 196.6 kB / 0.5346 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.3635, allocations: 7.062 kB / 0.5346 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.3635, allocations: 9.875 kB / 0.5346 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003413/0.3638, allocations: 151.5 kB / 0.5348 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.3639, allocations: 5.375 kB / 0.5348 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.3639, allocations: 9.031 kB / 0.5348 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3639, allocations: 1.531 kB / 0.5348 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003381/0.3642, allocations: 109 kB / 0.5349 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006556/0.3649, allocations: 0.54 MB / 0.5354 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003919/0.3653, allocations: 137.4 kB / 0.5356 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.3655, allocations: 55.06 kB / 0.5356 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.3655, allocations: 1.156 kB / 0.5356 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.3655, allocations: 39.62 kB / 0.5357 GB, free: 10.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.322e-06/0.3655, allocations: 0 / 0.5357 GB, free: 10.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006132/0.3662, allocations: 189.7 kB / 0.5358 GB, free: 10.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.271e-05/0.3662, allocations: 104.2 kB / 0.5359 GB, free: 9.992 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.3664, allocations: 135.8 kB / 0.5361 GB, free: 9.871 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.3664, allocations: 33.7 kB / 0.5361 GB, free: 9.832 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.32e-05/0.3665, allocations: 105.6 kB / 0.5362 GB, free: 9.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.613e-05/0.3665, allocations: 26.39 kB / 0.5362 GB, free: 9.707 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.154e-05/0.3665, allocations: 31.28 kB / 0.5363 GB, free: 9.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.3667, allocations: 325.5 kB / 0.5366 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.3668, allocations: 43.45 kB / 0.5366 GB, free: 9.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.367, allocations: 94.55 kB / 0.5367 GB, free: 9.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002984/0.3673, allocations: 117 kB / 0.5368 GB, free: 9.195 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3673, allocations: 0 / 0.5368 GB, free: 9.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003736/0.3677, allocations: 152.9 kB / 0.537 GB, free: 9.109 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3677, allocations: 8.438 kB / 0.537 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.3677, allocations: 1.125 kB / 0.537 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.3678, allocations: 1.031 kB / 0.537 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.3679, allocations: 30.19 kB / 0.537 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.3679, allocations: 1.125 kB / 0.537 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001343/0.3681, allocations: 35.38 kB / 0.537 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.3681, allocations: 3.344 kB / 0.537 GB, free: 9.074 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.0001062/0.3682, allocations: 123.2 kB / 0.5371 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.482e-05/0.3682, allocations: 8.344 kB / 0.5372 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.933e-05/0.3683, allocations: 19.89 kB / 0.5372 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3683, allocations: 1.156 kB / 0.5372 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.3683, allocations: 3.984 kB / 0.5372 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3683, allocations: 4.969 kB / 0.5372 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002154/0.3685, allocations: 206.9 kB / 0.5374 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3686, allocations: 4 kB / 0.5374 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.3687, allocations: 27.06 kB / 0.5374 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3687, allocations: 4 kB / 0.5374 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.3687, allocations: 5.125 kB / 0.5374 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.3687, allocations: 1.219 kB / 0.5374 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3687, allocations: 0 / 0.5374 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004142/0.3691, allocations: 237.1 kB / 0.5376 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.3692, allocations: 84.36 kB / 0.5377 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.3692, allocations: 1 kB / 0.5377 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.3694, allocations: 26.09 kB / 0.5378 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.034e-05/0.3694, allocations: 7.391 kB / 0.5378 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.3694, allocations: 10.59 kB / 0.5378 GB, free: 8.359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.558e-05/0.3695, allocations: 105 kB / 0.5379 GB, free: 8.273 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3695, allocations: 3.938 kB / 0.5379 GB, free: 8.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002523/0.3698, allocations: 26.62 kB / 0.5379 GB, free: 8.258 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 9.592e-05/0.3699, allocations: 99.11 kB / 0.538 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004079/0.3703, allocations: 120.2 kB / 0.5381 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3703, allocations: 1.25 kB / 0.5381 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.3705, allocations: 63.22 kB / 0.5382 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.0003015/0.3708, allocations: 21.92 kB / 0.5382 GB, free: 8.074 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005384/0.3713, allocations: 239 kB / 0.5384 GB, free: 7.879 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.3716, allocations: 0.6977 MB / 0.5391 GB, free: 7.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.766e-05/0.3717, allocations: 18.23 kB / 0.5391 GB, free: 7.164 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3717, allocations: 0 / 0.5391 GB, free: 7.164 MB / 398.1 MB Notification: Performance of Templates: time 0.003213/0.3749, allocations: 1.416 MB / 0.5405 GB, free: 6.438 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)