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.001437/0.001437, allocations: 114.8 kB / 21.22 MB, free: 0.7305 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.001609/0.001609, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.493/1.493, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.2619/0.2619, allocations: 46.94 MB / 361.7 MB, free: 4.238 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.002086/0.002086, allocations: 71.89 kB / 0.4969 GB, free: 7.879 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3786, allocations: 66.03 MB / 0.5614 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002968/0.3816, allocations: 1.488 MB / 0.5629 GB, free: 2.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009991/0.3826, allocations: 486.8 kB / 0.5633 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.496e-05/0.3826, allocations: 4 kB / 0.5633 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.203e-05/0.3827, allocations: 3.938 kB / 0.5633 GB, free: 2.469 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.099e-05/0.3827, allocations: 7.938 kB / 0.5633 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.383, allocations: 31.89 kB / 0.5634 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001264/0.3831, allocations: 39.86 kB / 0.5634 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.3832, allocations: 4 kB / 0.5634 GB, free: 2.387 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.3834, allocations: 19.92 kB / 0.5634 GB, free: 2.367 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.431e-05/0.3834, allocations: 23.91 kB / 0.5634 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.421e-05/0.3835, allocations: 0 / 0.5634 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.686e-05/0.3835, allocations: 12 kB / 0.5635 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.547e-05/0.3835, allocations: 7.922 kB / 0.5635 GB, free: 2.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.486e-05/0.3836, allocations: 19.94 kB / 0.5635 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.3837, allocations: 37.8 kB / 0.5635 GB, free: 2.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3837, allocations: 0 / 0.5635 GB, free: 2.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 6.071e-06/0.3837, allocations: 3.984 kB / 0.5635 GB, free: 2.266 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.3837, allocations: 4 kB / 0.5635 GB, free: 2.262 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.0004812/0.3842, allocations: 270.2 kB / 0.5638 GB, free: 1.969 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.3843, allocations: 12.03 kB / 0.5638 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.783e-05/0.3843, allocations: 192 / 0.5638 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.08e-05/0.3843, allocations: 38.69 kB / 0.5638 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.3844, allocations: 12.92 kB / 0.5638 GB, free: 1.898 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.3847, allocations: 122.4 kB / 0.564 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.935e-06/0.3847, allocations: 384 / 0.564 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.947e-06/0.3847, allocations: 4.375 kB / 0.564 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001606/0.3848, allocations: 59.28 kB / 0.564 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.3848, allocations: 0 / 0.564 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.3849, allocations: 4 kB / 0.564 GB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.3849, allocations: 4 kB / 0.564 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.145e-05/0.3849, allocations: 23.97 kB / 0.5641 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003758/0.3853, allocations: 235.9 kB / 0.5643 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.481e-05/0.3854, allocations: 34.5 kB / 0.5643 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.032e-05/0.3855, allocations: 16.92 kB / 0.5643 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.3855, allocations: 4 kB / 0.5643 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.3855, allocations: 34.55 kB / 0.5644 GB, free: 1.266 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3855, allocations: 0 / 0.5644 GB, free: 1.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002459/0.3858, allocations: 61.69 kB / 0.5644 GB, free: 1.199 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/0.3858, allocations: 77.11 kB / 0.5645 GB, free: 1.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.3859, allocations: 117.8 kB / 0.5646 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.386, allocations: 29.83 kB / 0.5646 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.957e-05/0.3861, allocations: 84.14 kB / 0.5647 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.3861, allocations: 7.953 kB / 0.5647 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.3861, allocations: 13.72 kB / 0.5647 GB, free: 0.832 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3863, allocations: 326.8 kB / 0.5651 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.602e-05/0.3863, allocations: 4 kB / 0.5651 GB, free: 0.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.801e-05/0.3864, allocations: 29.7 kB / 0.5651 GB, free: 476 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.304e-05/0.3865, allocations: 28.88 kB / 0.5651 GB, free: 444 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3865, allocations: 0 / 0.5651 GB, free: 444 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001455/0.3866, allocations: 61.61 kB / 0.5652 GB, free: 376 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3866, allocations: 8 kB / 0.5652 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3866, allocations: 0 / 0.5652 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.3867, allocations: 4.375 kB / 0.5652 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.784e-05/0.3867, allocations: 4 kB / 0.5652 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.3867, allocations: 0 / 0.5652 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.408e-05/0.3868, allocations: 15.94 kB / 0.5652 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.3868, allocations: 7.875 kB / 0.5652 GB, free: 336 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.0001013/0.3869, allocations: 117.9 kB / 0.5653 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.3869, allocations: 7.984 kB / 0.5653 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.503e-05/0.387, allocations: 7.609 kB / 0.5653 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.387, allocations: 0 / 0.5653 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.387, allocations: 0 / 0.5653 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.387, allocations: 0 / 0.5653 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001962/0.3872, allocations: 140.7 kB / 0.5655 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3872, allocations: 4 kB / 0.5655 GB, free: 0 / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.769e-05/0.3872, allocations: 4.047 kB / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3872, allocations: 0 / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.3873, allocations: 0 / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3873, allocations: 0 / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3873, allocations: 0 / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001917/0.3874, allocations: 159.3 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.665e-06/0.3875, allocations: 4.031 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.3875, allocations: 8 kB / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.446e-05/0.3876, allocations: 7.984 kB / 0.5656 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.3876, allocations: 3.984 kB / 0.5657 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.3876, allocations: 4 kB / 0.5657 GB, free: 15.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.902e-05/0.3877, allocations: 87.27 kB / 0.5657 GB, free: 15.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3877, allocations: 4 kB / 0.5657 GB, free: 15.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000217/0.3879, allocations: 4 kB / 0.5657 GB, free: 15.7 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.0005031/0.3884, allocations: 0.685 MB / 0.5664 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.3885, allocations: 23.98 kB / 0.5664 GB, free: 14.97 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3885, allocations: 0 / 0.5664 GB, free: 14.97 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.014e-05/0.3886, allocations: 16.02 kB / 0.5665 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.3888, allocations: 8.062 kB / 0.5665 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.3902, allocations: 1.282 MB / 0.5677 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.3906, allocations: 0.6845 MB / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.827e-05/0.3906, allocations: 0 / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.987e-05/0.3907, allocations: 15.42 kB / 0.5684 GB, free: 12.86 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3907, allocations: 0 / 0.5684 GB, free: 12.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.412, allocations: 1.678 MB / 0.57 GB, free: 11.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.9, allocations: 18.19 kB / 0.5701 GB, free: 11.31 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.919624503003433] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 12.068187906988896 12.09737035 11.708555367 Calling exit ...