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.001482/0.001482, 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.001782/0.001782, 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.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2046/0.2046, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 75.88 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3393, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002991/0.3424, allocations: 1.718 MB / 0.5327 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004358/0.3429, allocations: 164.2 kB / 0.5328 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.045e-05/0.3429, allocations: 5.781 kB / 0.5328 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.277e-05/0.343, allocations: 13.56 kB / 0.5328 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.072e-05/0.3431, allocations: 11.86 kB / 0.5328 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003561/0.3434, allocations: 98.23 kB / 0.5329 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001717/0.3436, allocations: 107.1 kB / 0.533 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.3438, allocations: 37.73 kB / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.043e-05/0.3438, allocations: 38.98 kB / 0.5331 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.354e-05/0.3439, allocations: 45.45 kB / 0.5332 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.344, allocations: 12.19 kB / 0.5332 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.968e-05/0.344, allocations: 8.25 kB / 0.5332 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.915e-05/0.344, allocations: 24.03 kB / 0.5332 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.902e-05/0.3441, allocations: 40.05 kB / 0.5332 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.3442, allocations: 96.19 kB / 0.5333 GB, free: 11.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3442, allocations: 0 / 0.5333 GB, free: 11.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3443, allocations: 0 / 0.5333 GB, free: 11.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.3443, allocations: 0 / 0.5333 GB, free: 11.76 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.0007326/0.345, allocations: 446.5 kB / 0.5337 GB, free: 11.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.345, allocations: 9.625 kB / 0.5338 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.362e-05/0.3451, allocations: 14.25 kB / 0.5338 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.3454, allocations: 194.6 kB / 0.534 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.3454, allocations: 7.062 kB / 0.534 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.837e-05/0.3454, allocations: 9.875 kB / 0.534 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/0.3458, allocations: 153.1 kB / 0.5341 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.3458, allocations: 192 / 0.5341 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.3458, allocations: 9.312 kB / 0.5341 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3458, allocations: 2.75 kB / 0.5341 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003584/0.3462, allocations: 112.3 kB / 0.5342 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007082/0.3469, allocations: 0.5404 MB / 0.5348 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004303/0.3473, allocations: 133.9 kB / 0.5349 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.3475, allocations: 58.09 kB / 0.5349 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.3476, allocations: 1.25 kB / 0.535 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.3476, allocations: 36.06 kB / 0.535 GB, free: 10.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.3476, allocations: 3.938 kB / 0.535 GB, free: 10.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006423/0.3483, allocations: 189.3 kB / 0.5352 GB, free: 10.13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/0.3484, allocations: 104 kB / 0.5353 GB, free: 10.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.3485, allocations: 140 kB / 0.5354 GB, free: 9.883 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.3485, allocations: 26.92 kB / 0.5354 GB, free: 9.852 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.475e-05/0.3486, allocations: 104.7 kB / 0.5355 GB, free: 9.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.44e-05/0.3486, allocations: 27.14 kB / 0.5356 GB, free: 9.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.941e-05/0.3487, allocations: 30.69 kB / 0.5356 GB, free: 9.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.3488, allocations: 325.1 kB / 0.5359 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.349, allocations: 47.52 kB / 0.5359 GB, free: 9.355 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.3492, allocations: 94.08 kB / 0.536 GB, free: 9.281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.3495, allocations: 109.1 kB / 0.5361 GB, free: 9.219 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3495, allocations: 4.031 kB / 0.5361 GB, free: 9.215 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003968/0.3499, allocations: 160.6 kB / 0.5363 GB, free: 9.121 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3499, allocations: 5.719 kB / 0.5363 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3499, allocations: 1.188 kB / 0.5363 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.35, allocations: 4.891 kB / 0.5363 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.3501, allocations: 37.12 kB / 0.5363 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.3501, allocations: 0.9375 kB / 0.5363 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.3503, allocations: 36.44 kB / 0.5364 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.3503, allocations: 2.812 kB / 0.5364 GB, free: 9.078 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.0001171/0.3504, allocations: 119.3 kB / 0.5365 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.611e-05/0.3505, allocations: 8.969 kB / 0.5365 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.697e-05/0.3505, allocations: 19.2 kB / 0.5365 GB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.3505, allocations: 5.406 kB / 0.5365 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3505, allocations: 0 / 0.5365 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.3505, allocations: 3.938 kB / 0.5365 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.3508, allocations: 204.3 kB / 0.5367 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3508, allocations: 0 / 0.5367 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.3509, allocations: 26.34 kB / 0.5367 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3509, allocations: 1.438 kB / 0.5367 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.3509, allocations: 4 kB / 0.5367 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3509, allocations: 1.312 kB / 0.5367 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3509, allocations: 4 kB / 0.5368 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004494/0.3514, allocations: 238.2 kB / 0.537 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.548e-05/0.3515, allocations: 82.45 kB / 0.5371 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.3515, allocations: 1.344 kB / 0.5371 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.3516, allocations: 30.75 kB / 0.5371 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.789e-05/0.3517, allocations: 7.422 kB / 0.5371 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.3517, allocations: 10.47 kB / 0.5371 GB, free: 8.371 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.822e-05/0.3518, allocations: 103.6 kB / 0.5372 GB, free: 8.285 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.452e-06/0.3518, allocations: 0.9688 kB / 0.5372 GB, free: 8.285 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002457/0.3521, allocations: 26 kB / 0.5372 GB, free: 8.273 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.000112/0.3522, allocations: 100.5 kB / 0.5373 GB, free: 8.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004197/0.3526, allocations: 120.2 kB / 0.5374 GB, free: 8.129 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3526, allocations: 0 / 0.5374 GB, free: 8.129 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.3528, allocations: 64.31 kB / 0.5375 GB, free: 8.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/0.3531, allocations: 22.41 kB / 0.5375 GB, free: 8.094 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005531/0.3537, allocations: 219.6 kB / 0.5377 GB, free: 7.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.354, allocations: 0.6947 MB / 0.5384 GB, free: 7.219 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.71e-05/0.354, allocations: 15.44 kB / 0.5384 GB, free: 7.207 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.308e-05/0.3541, allocations: 12.88 kB / 0.5384 GB, free: 7.199 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3541, allocations: 0 / 0.5384 GB, free: 7.199 MB / 398.1 MB Notification: Performance of Templates: time 0.003985/0.3581, allocations: 1.435 MB / 0.5398 GB, free: 6.477 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)