Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001245/0.001245, 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.001582/0.001582, allocations: 212.5 kB / 24.52 MB, free: 3.91 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.479/1.479, allocations: 230.6 MB / 258.3 MB, free: 7.742 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.2372/0.2372, allocations: 46.96 MB / 361.7 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 180] 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.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001975, allocations: 64.14 kB / 0.4969 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.4149, allocations: 66.03 MB / 0.5613 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003252/0.4181, allocations: 1.469 MB / 0.5628 GB, free: 2.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.4191, allocations: 447 kB / 0.5632 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.51e-05/0.4192, allocations: 0 / 0.5632 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.994e-05/0.4192, allocations: 3.938 kB / 0.5632 GB, free: 2.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.723e-05/0.4193, allocations: 3.938 kB / 0.5632 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002687/0.4196, allocations: 39.89 kB / 0.5632 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.4197, allocations: 31.92 kB / 0.5633 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.312e-05/0.4198, allocations: 4 kB / 0.5633 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.4199, allocations: 27.86 kB / 0.5633 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.741e-05/0.42, allocations: 19.91 kB / 0.5633 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.42, allocations: 4 kB / 0.5633 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.109e-05/0.4201, allocations: 8 kB / 0.5633 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.819e-05/0.4201, allocations: 3.938 kB / 0.5633 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.461e-05/0.4201, allocations: 15.92 kB / 0.5634 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.4203, allocations: 41.66 kB / 0.5634 GB, free: 2.113 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.4203, allocations: 4 kB / 0.5634 GB, free: 2.109 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4203, allocations: 0 / 0.5634 GB, free: 2.109 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.4203, allocations: 0 / 0.5634 GB, free: 2.109 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.0005019/0.4208, allocations: 282.2 kB / 0.5637 GB, free: 1.805 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.4208, allocations: 8.031 kB / 0.5637 GB, free: 1.797 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.663e-05/0.4208, allocations: 192 / 0.5637 GB, free: 1.797 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.461e-05/0.4209, allocations: 34.75 kB / 0.5637 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.421, allocations: 16.86 kB / 0.5637 GB, free: 1.738 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.4213, allocations: 114.5 kB / 0.5638 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.547e-06/0.4213, allocations: 4.375 kB / 0.5638 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.4213, allocations: 4.375 kB / 0.5638 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001978/0.4215, allocations: 85.03 kB / 0.5639 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.4215, allocations: 0 / 0.5639 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.4215, allocations: 4 kB / 0.5639 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.4215, allocations: 0 / 0.5639 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.345e-05/0.4216, allocations: 27.86 kB / 0.564 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004019/0.422, allocations: 239.9 kB / 0.5642 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001033/0.4221, allocations: 38.62 kB / 0.5642 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.537e-05/0.4221, allocations: 8.859 kB / 0.5642 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.4222, allocations: 0 / 0.5642 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/0.4222, allocations: 38.56 kB / 0.5643 GB, free: 1.078 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.4222, allocations: 0 / 0.5643 GB, free: 1.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002601/0.4225, allocations: 61.61 kB / 0.5643 GB, free: 1.012 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.487e-05/0.4225, allocations: 77.11 kB / 0.5644 GB, free: 0.918 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.4226, allocations: 117.8 kB / 0.5645 GB, free: 0.793 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.4226, allocations: 29.83 kB / 0.5645 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.966e-05/0.4227, allocations: 92.12 kB / 0.5646 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.4227, allocations: 3.953 kB / 0.5646 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.05e-05/0.4228, allocations: 13.72 kB / 0.5646 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.4229, allocations: 322.8 kB / 0.565 GB, free: 324 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.045e-05/0.423, allocations: 12 kB / 0.565 GB, free: 312 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.936e-05/0.423, allocations: 51.41 kB / 0.565 GB, free: 248 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.2e-05/0.4231, allocations: 28.78 kB / 0.565 GB, free: 216 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.4231, allocations: 0 / 0.565 GB, free: 216 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001361/0.4233, allocations: 61.7 kB / 0.5651 GB, free: 148 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.4233, allocations: 4 kB / 0.5651 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.4233, allocations: 0 / 0.5651 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.4233, allocations: 4 kB / 0.5651 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.332e-05/0.4234, allocations: 0 / 0.5651 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.976e-06/0.4234, allocations: 4 kB / 0.5651 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.218e-05/0.4235, allocations: 11.94 kB / 0.5651 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.4235, allocations: 0 / 0.5651 GB, free: 124 kB / 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 0.0001239/0.4236, allocations: 121.8 kB / 0.5652 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.936e-05/0.4236, allocations: 12 kB / 0.5653 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.623e-05/0.4236, allocations: 11.56 kB / 0.5653 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.4236, allocations: 0 / 0.5653 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.4236, allocations: 0 / 0.5653 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.4236, allocations: 4.312 kB / 0.5653 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.4238, allocations: 132.7 kB / 0.5654 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4238, allocations: 0 / 0.5654 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.907e-05/0.4239, allocations: 4 kB / 0.5654 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.4239, allocations: 3.938 kB / 0.5654 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.4239, allocations: 0 / 0.5654 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.4239, allocations: 0 / 0.5654 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4239, allocations: 7.984 kB / 0.5654 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001906/0.4241, allocations: 155.4 kB / 0.5656 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.065e-06/0.4241, allocations: 0 / 0.5656 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.4241, allocations: 4 kB / 0.5656 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.718e-05/0.4242, allocations: 7.984 kB / 0.5656 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.703e-05/0.4242, allocations: 11.92 kB / 0.5656 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-06/0.4242, allocations: 0 / 0.5656 GB, free: 15.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.837e-05/0.4243, allocations: 95.2 kB / 0.5657 GB, free: 15.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4243, allocations: 0 / 0.5657 GB, free: 15.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002214/0.4245, allocations: 8.031 kB / 0.5657 GB, free: 15.48 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: 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.0005078/0.425, allocations: 0.6812 MB / 0.5663 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001436/0.4252, allocations: 27.98 kB / 0.5664 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.4252, allocations: 0 / 0.5664 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.444e-05/0.4252, allocations: 15.92 kB / 0.5664 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002267/0.4254, allocations: 4 kB / 0.5664 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.4269, allocations: 1.278 MB / 0.5676 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.078e-05/0.4269, allocations: 63.34 kB / 0.5677 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.863e-05/0.427, allocations: 7.984 kB / 0.5677 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.175e-05/0.427, allocations: 11.44 kB / 0.5677 GB, free: 13.27 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.427, allocations: 0 / 0.5677 GB, free: 13.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02081/0.4478, allocations: 1.742 MB / 0.5694 GB, free: 11.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.97, allocations: 11.44 kB / 0.5694 GB, free: 11.66 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.90288193395827] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 12.13272355904337 12.160218682 11.735022184 Calling exit ...