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.001408/0.001408, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00175/0.00175, allocations: 209.2 kB / 23.73 MB, free: 4.387 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.2354/0.2354, allocations: 46.97 MB / 360.9 MB, free: 4.027 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00215/0.00215, allocations: 67.91 kB / 0.4961 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3666, allocations: 66.03 MB / 0.5606 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002776/0.3693, allocations: 1.469 MB / 0.562 GB, free: 2.785 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008998/0.3702, allocations: 455 kB / 0.5624 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.757e-05/0.3703, allocations: 0 / 0.5624 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.003e-05/0.3703, allocations: 3.938 kB / 0.5624 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.49e-05/0.3704, allocations: 7.922 kB / 0.5625 GB, free: 2.324 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.3706, allocations: 27.91 kB / 0.5625 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001033/0.3707, allocations: 31.92 kB / 0.5625 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.675e-05/0.3708, allocations: 11.98 kB / 0.5625 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.3709, allocations: 19.88 kB / 0.5625 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.39e-05/0.371, allocations: 23.91 kB / 0.5626 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.371, allocations: 4 kB / 0.5626 GB, free: 2.207 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.408e-05/0.3711, allocations: 11.98 kB / 0.5626 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.433e-05/0.3711, allocations: 7.938 kB / 0.5626 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.67e-05/0.3711, allocations: 11.94 kB / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.3712, allocations: 45.92 kB / 0.5626 GB, free: 2.133 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3712, allocations: 0 / 0.5626 GB, free: 2.133 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3712, allocations: 0 / 0.5626 GB, free: 2.133 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.3712, allocations: 0 / 0.5626 GB, free: 2.133 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.0004741/0.3717, allocations: 274.2 kB / 0.5629 GB, free: 1.836 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.3717, allocations: 8.031 kB / 0.5629 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.499e-05/0.3718, allocations: 34.75 kB / 0.5629 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001662/0.372, allocations: 12.92 kB / 0.563 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.3722, allocations: 126.4 kB / 0.5631 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.3722, allocations: 4.375 kB / 0.5631 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.3722, allocations: 384 / 0.5631 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002062/0.3724, allocations: 89.22 kB / 0.5632 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.3724, allocations: 0 / 0.5632 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.3725, allocations: 0 / 0.5632 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3725, allocations: 0 / 0.5632 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.747e-05/0.3726, allocations: 23.98 kB / 0.5632 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004419/0.373, allocations: 235.9 kB / 0.5634 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.3731, allocations: 30.56 kB / 0.5634 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.308e-05/0.3732, allocations: 16.91 kB / 0.5635 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.3732, allocations: 7.984 kB / 0.5635 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.341e-05/0.3732, allocations: 30.56 kB / 0.5635 GB, free: 1.113 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.71e-07/0.3732, allocations: 0 / 0.5635 GB, free: 1.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002672/0.3735, allocations: 65.61 kB / 0.5636 GB, free: 1.043 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/0.3736, allocations: 81.11 kB / 0.5636 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.3737, allocations: 109.8 kB / 0.5637 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.3737, allocations: 29.7 kB / 0.5638 GB, free: 0.793 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.509e-05/0.3738, allocations: 88.08 kB / 0.5639 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.3738, allocations: 7.891 kB / 0.5639 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.483e-05/0.3738, allocations: 21.7 kB / 0.5639 GB, free: 0.668 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002654/0.3741, allocations: 318.8 kB / 0.5642 GB, free: 356 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.08e-05/0.3741, allocations: 11.98 kB / 0.5642 GB, free: 344 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.676e-05/0.3742, allocations: 55.55 kB / 0.5643 GB, free: 276 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.741e-05/0.3743, allocations: 28.83 kB / 0.5643 GB, free: 244 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3743, allocations: 0 / 0.5643 GB, free: 244 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001301/0.3744, allocations: 53.62 kB / 0.5643 GB, free: 184 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.3745, allocations: 8 kB / 0.5643 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.3745, allocations: 0 / 0.5643 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.3745, allocations: 384 / 0.5643 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.08e-05/0.3746, allocations: 7.984 kB / 0.5643 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.3746, allocations: 0 / 0.5643 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.219e-05/0.3746, allocations: 15.98 kB / 0.5644 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.3746, allocations: 15.92 kB / 0.5644 GB, free: 136 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 9.991e-05/0.3747, allocations: 109.8 kB / 0.5645 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.3748, allocations: 4 kB / 0.5645 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.3748, allocations: 7.625 kB / 0.5645 GB, free: 0 / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.3748, allocations: 0 / 0.5645 GB, free: 0 / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.49e-05/0.3748, allocations: 4.047 kB / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.3748, allocations: 0 / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001768/0.375, allocations: 128.6 kB / 0.5646 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.375, allocations: 0 / 0.5646 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.413e-05/0.3751, allocations: 11.98 kB / 0.5646 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3751, allocations: 0 / 0.5646 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.3751, allocations: 0 / 0.5646 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.3751, allocations: 7.938 kB / 0.5646 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3751, allocations: 0 / 0.5646 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001823/0.3753, allocations: 155.4 kB / 0.5648 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.928e-06/0.3753, allocations: 4 kB / 0.5648 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.3753, allocations: 0 / 0.5648 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.422e-05/0.3754, allocations: 7.984 kB / 0.5648 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.3754, allocations: 12.02 kB / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.3754, allocations: 0 / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.653e-05/0.3755, allocations: 87.28 kB / 0.5649 GB, free: 15.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3755, allocations: 0 / 0.5649 GB, free: 15.53 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002176/0.3757, allocations: 11.94 kB / 0.5649 GB, free: 15.52 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.0005389/0.3762, allocations: 0.685 MB / 0.5656 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001517/0.3764, allocations: 27.97 kB / 0.5656 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3764, allocations: 0 / 0.5656 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.519e-05/0.3764, allocations: 12.03 kB / 0.5656 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000234/0.3767, allocations: 15.88 kB / 0.5656 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.3782, allocations: 1.266 MB / 0.5669 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.191e-05/0.3782, allocations: 63.28 kB / 0.5669 GB, free: 13.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.124e-05/0.3783, allocations: 8.031 kB / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.149e-05/0.3783, allocations: 15.5 kB / 0.5669 GB, free: 13.3 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3783, allocations: 0 / 0.5669 GB, free: 13.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0292/0.4075, allocations: 2.084 MB / 0.569 GB, free: 11.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.81, allocations: 16.23 kB / 0.569 GB, free: 11.34 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000598325 ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable hysteresis.y in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.874941259156913]