Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.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.001967/0.001967, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 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.002651/0.002651, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 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.509/1.509, allocations: 230.6 MB / 258.3 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2534/0.2534, allocations: 46.93 MB / 361.6 MB, free: 4.301 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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: "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 75.88 kB / 0.4969 GB, free: 7.934 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3556, allocations: 66.03 MB / 0.5614 GB, free: 4.5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003525/0.3591, allocations: 1.719 MB / 0.5631 GB, free: 2.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004805/0.3596, allocations: 167.5 kB / 0.5633 GB, free: 2.605 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.108e-05/0.3597, allocations: 4 kB / 0.5633 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.323e-05/0.3597, allocations: 7.875 kB / 0.5633 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.886e-05/0.3598, allocations: 11.88 kB / 0.5633 GB, free: 2.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004271/0.3602, allocations: 103.7 kB / 0.5634 GB, free: 2.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002228/0.3605, allocations: 107.8 kB / 0.5635 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.3606, allocations: 23.41 kB / 0.5635 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.3607, allocations: 47.84 kB / 0.5635 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.475e-05/0.3608, allocations: 43.78 kB / 0.5636 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.828e-05/0.3609, allocations: 8 kB / 0.5636 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.822e-05/0.3609, allocations: 12 kB / 0.5636 GB, free: 2.238 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.927e-05/0.3609, allocations: 27.91 kB / 0.5636 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.108e-05/0.361, allocations: 35.8 kB / 0.5637 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001888/0.3612, allocations: 99.45 kB / 0.5638 GB, free: 2.078 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3612, allocations: 0 / 0.5638 GB, free: 2.078 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3612, allocations: 0 / 0.5638 GB, free: 2.078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.3612, allocations: 0 / 0.5638 GB, free: 2.078 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.0008052/0.362, allocations: 373.8 kB / 0.5641 GB, free: 1.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.362, allocations: 8.031 kB / 0.5641 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.137e-05/0.3621, allocations: 192 / 0.5641 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.837e-05/0.3621, allocations: 46.73 kB / 0.5642 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.091e-05/0.3622, allocations: 16.84 kB / 0.5642 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.3625, allocations: 145.1 kB / 0.5643 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.3625, allocations: 8.375 kB / 0.5643 GB, free: 1.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.3625, allocations: 4.375 kB / 0.5643 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000434/0.3629, allocations: 162.2 kB / 0.5645 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.3629, allocations: 0 / 0.5645 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.363, allocations: 0 / 0.5645 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.363, allocations: 4 kB / 0.5645 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004039/0.3634, allocations: 107.9 kB / 0.5646 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009478/0.3643, allocations: 0.5116 MB / 0.5651 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004669/0.3648, allocations: 142.4 kB / 0.5652 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.365, allocations: 56.84 kB / 0.5653 GB, free: 376 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.365, allocations: 0 / 0.5653 GB, free: 376 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/0.365, allocations: 34.56 kB / 0.5653 GB, free: 332 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.365, allocations: 4 kB / 0.5653 GB, free: 328 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006915/0.3657, allocations: 181.5 kB / 0.5655 GB, free: 140 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.817e-05/0.3658, allocations: 106.8 kB / 0.5656 GB, free: 8 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.366, allocations: 140.1 kB / 0.5657 GB, free: 15.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.366, allocations: 29.7 kB / 0.5658 GB, free: 15.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.3661, allocations: 112 kB / 0.5659 GB, free: 15.71 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.42e-05/0.3661, allocations: 19.86 kB / 0.5659 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.388e-05/0.3662, allocations: 37.64 kB / 0.5659 GB, free: 15.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.3664, allocations: 322.8 kB / 0.5662 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.3666, allocations: 43.95 kB / 0.5663 GB, free: 15.28 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.3668, allocations: 92.14 kB / 0.5664 GB, free: 15.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.3672, allocations: 114.4 kB / 0.5665 GB, free: 15.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3672, allocations: 4.031 kB / 0.5665 GB, free: 15.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004405/0.3676, allocations: 145.5 kB / 0.5666 GB, free: 14.9 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.3676, allocations: 8.172 kB / 0.5666 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3676, allocations: 0 / 0.5666 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.3677, allocations: 11.92 kB / 0.5666 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.3678, allocations: 28.03 kB / 0.5667 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.3678, allocations: 3.938 kB / 0.5667 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001544/0.368, allocations: 39.86 kB / 0.5667 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/0.368, allocations: 4 kB / 0.5667 GB, free: 14.81 MB / 414.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.0001214/0.3681, allocations: 117.8 kB / 0.5668 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.74e-05/0.3682, allocations: 11.95 kB / 0.5668 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.167e-05/0.3682, allocations: 16.72 kB / 0.5668 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.3682, allocations: 3.984 kB / 0.5668 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.3682, allocations: 7.938 kB / 0.5669 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.3682, allocations: 0 / 0.5669 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002485/0.3685, allocations: 172.7 kB / 0.567 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.3685, allocations: 0 / 0.567 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.3686, allocations: 19.98 kB / 0.567 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3686, allocations: 3.984 kB / 0.567 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.3686, allocations: 4 kB / 0.567 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.3686, allocations: 4 kB / 0.567 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.3686, allocations: 7.938 kB / 0.5671 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006037/0.3692, allocations: 235.3 kB / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.681e-05/0.3692, allocations: 7.953 kB / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.388e-05/0.3693, allocations: 0 / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.3694, allocations: 31.97 kB / 0.5673 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.431e-05/0.3695, allocations: 11.92 kB / 0.5673 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-06/0.3695, allocations: 4 kB / 0.5673 GB, free: 14.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.417e-05/0.3696, allocations: 105.5 kB / 0.5674 GB, free: 13.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3696, allocations: 3.938 kB / 0.5674 GB, free: 13.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002483/0.3698, allocations: 19.94 kB / 0.5675 GB, free: 13.96 MB / 414.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.0008314/0.3707, allocations: 0.7597 MB / 0.5682 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004534/0.3711, allocations: 123.9 kB / 0.5683 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.3711, allocations: 0 / 0.5683 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001943/0.3713, allocations: 63.88 kB / 0.5684 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.3717, allocations: 17.62 kB / 0.5684 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002622/0.3743, allocations: 1.672 MB / 0.57 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.3746, allocations: 0.6968 MB / 0.5707 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.976e-05/0.3747, allocations: 12.67 kB / 0.5707 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.574e-05/0.3748, allocations: 27.42 kB / 0.5707 GB, free: 10.46 MB / 414.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3748, allocations: 0 / 0.5707 GB, free: 10.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02425/0.399, allocations: 2.946 MB / 0.5736 GB, free: 7.656 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.74, allocations: 9.406 kB / 0.5736 GB, free: 7.652 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.86498114198912] Failed to read output from testmodel.py, exit status != 0: ['time', 'ramp.y', 'greaterThreshold.y', 'greaterEqualThreshold.y', 'lessThreshold.y', 'lessEqualThreshold.y'] 11.904504162957892 11.922476447 11.557840461 Calling exit ...