Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.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.001592/0.001592, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001534/0.001534, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.491/1.491, allocations: 230.6 MB / 258.3 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2315/0.2315, allocations: 44.93 MB / 359.6 MB, free: 6.027 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002449/0.002449, allocations: 63.89 kB / 0.4938 GB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3605/0.363, allocations: 65.48 MB / 0.5577 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002877/0.3658, allocations: 1.447 MB / 0.5591 GB, free: 6.059 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009279/0.3668, allocations: 462.9 kB / 0.5596 GB, free: 5.602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.556e-05/0.3668, allocations: 0 / 0.5596 GB, free: 5.602 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.627e-05/0.3669, allocations: 0 / 0.5596 GB, free: 5.602 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.224e-05/0.3669, allocations: 11.88 kB / 0.5596 GB, free: 5.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.3672, allocations: 23.97 kB / 0.5596 GB, free: 5.566 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001157/0.3673, allocations: 39.86 kB / 0.5597 GB, free: 5.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.788e-05/0.3674, allocations: 3.984 kB / 0.5597 GB, free: 5.523 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.3675, allocations: 27.92 kB / 0.5597 GB, free: 5.496 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.874e-05/0.3676, allocations: 15.92 kB / 0.5597 GB, free: 5.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.3676, allocations: 7.938 kB / 0.5597 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.634e-05/0.3676, allocations: 8 kB / 0.5597 GB, free: 5.465 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.892e-05/0.3677, allocations: 7.984 kB / 0.5597 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.024e-05/0.3677, allocations: 11.92 kB / 0.5597 GB, free: 5.445 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001323/0.3678, allocations: 37.67 kB / 0.5598 GB, free: 5.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3678, allocations: 3.938 kB / 0.5598 GB, free: 5.406 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3678, allocations: 0 / 0.5598 GB, free: 5.406 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.3678, allocations: 0 / 0.5598 GB, free: 5.406 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004711/0.3683, allocations: 282.2 kB / 0.56 GB, free: 5.102 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.3683, allocations: 8.031 kB / 0.56 GB, free: 5.094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.786e-05/0.3684, allocations: 4.188 kB / 0.5601 GB, free: 5.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.699e-05/0.3684, allocations: 34.73 kB / 0.5601 GB, free: 5.047 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.3685, allocations: 8.938 kB / 0.5601 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.3688, allocations: 126.4 kB / 0.5602 GB, free: 4.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.3688, allocations: 4.375 kB / 0.5602 GB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.3688, allocations: 4.375 kB / 0.5602 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001836/0.369, allocations: 96.95 kB / 0.5603 GB, free: 4.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.369, allocations: 4 kB / 0.5603 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.369, allocations: 0 / 0.5603 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.369, allocations: 0 / 0.5603 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.956e-05/0.3691, allocations: 19.98 kB / 0.5603 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003876/0.3695, allocations: 235.9 kB / 0.5606 GB, free: 4.473 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.654e-05/0.3696, allocations: 34.52 kB / 0.5606 GB, free: 4.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.818e-05/0.3696, allocations: 12.91 kB / 0.5606 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.3696, allocations: 0 / 0.5606 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.3697, allocations: 38.56 kB / 0.5606 GB, free: 4.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.3697, allocations: 4 kB / 0.5606 GB, free: 4.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002542/0.3699, allocations: 57.67 kB / 0.5607 GB, free: 4.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.37, allocations: 77.11 kB / 0.5608 GB, free: 4.207 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.279e-05/0.3701, allocations: 117.8 kB / 0.5609 GB, free: 4.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.3701, allocations: 25.7 kB / 0.5609 GB, free: 4.051 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.13e-05/0.3702, allocations: 92.12 kB / 0.561 GB, free: 3.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.3702, allocations: 3.953 kB / 0.561 GB, free: 3.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.214e-05/0.3702, allocations: 17.72 kB / 0.561 GB, free: 3.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3704, allocations: 318.9 kB / 0.5613 GB, free: 3.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.213e-05/0.3704, allocations: 15.98 kB / 0.5613 GB, free: 3.594 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.3706, allocations: 55.41 kB / 0.5614 GB, free: 3.527 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.04e-05/0.3706, allocations: 24.84 kB / 0.5614 GB, free: 3.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3706, allocations: 0 / 0.5614 GB, free: 3.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001263/0.3708, allocations: 53.62 kB / 0.5615 GB, free: 3.441 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3708, allocations: 11.98 kB / 0.5615 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.3708, allocations: 3.938 kB / 0.5615 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3708, allocations: 0 / 0.5615 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.48e-05/0.3709, allocations: 8.031 kB / 0.5615 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.3709, allocations: 0 / 0.5615 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.884e-05/0.371, allocations: 12.31 kB / 0.5615 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.371, allocations: 4 kB / 0.5615 GB, free: 3.402 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 9.368e-05/0.3711, allocations: 113.8 kB / 0.5616 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.755e-05/0.3711, allocations: 4 kB / 0.5616 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.824e-05/0.3711, allocations: 11.56 kB / 0.5616 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.3711, allocations: 0 / 0.5616 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3711, allocations: 0 / 0.5616 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3711, allocations: 3.984 kB / 0.5616 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000163/0.3713, allocations: 136.7 kB / 0.5618 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3713, allocations: 0 / 0.5618 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.941e-05/0.3713, allocations: 4 kB / 0.5618 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.3713, allocations: 0 / 0.5618 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.3713, allocations: 144 / 0.5618 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3713, allocations: 0 / 0.5618 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3713, allocations: 4 kB / 0.5618 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001888/0.3715, allocations: 167.3 kB / 0.5619 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.126e-06/0.3715, allocations: 0 / 0.5619 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.3716, allocations: 8.031 kB / 0.5619 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.54e-05/0.3716, allocations: 7.984 kB / 0.5619 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/0.3717, allocations: 7.984 kB / 0.562 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.3717, allocations: 0 / 0.562 GB, free: 2.871 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.916e-05/0.3718, allocations: 91.27 kB / 0.562 GB, free: 2.781 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3718, allocations: 0 / 0.562 GB, free: 2.781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002207/0.372, allocations: 4 kB / 0.562 GB, free: 2.777 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: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004958/0.3725, allocations: 0.685 MB / 0.5627 GB, free: 2.066 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001436/0.3726, allocations: 32.02 kB / 0.5627 GB, free: 2.035 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3726, allocations: 0 / 0.5627 GB, free: 2.035 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.054e-05/0.3727, allocations: 11.98 kB / 0.5628 GB, free: 2.023 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.3729, allocations: 8 kB / 0.5628 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.3743, allocations: 1.27 MB / 0.564 GB, free: 0.668 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.564e-05/0.3743, allocations: 67.69 kB / 0.5641 GB, free: 0.582 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.497e-05/0.3744, allocations: 0 / 0.5641 GB, free: 0.582 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.485e-05/0.3744, allocations: 19.42 kB / 0.5641 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3744, allocations: 3.938 kB / 0.5641 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02256/0.397, allocations: 1.737 MB / 0.5658 GB, free: 14.97 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.86, allocations: 15.86 kB / 0.5658 GB, free: 14.95 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.782397240982391] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 12.02873128396459 12.052298479 11.680873653 Calling exit ...