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.00201/0.00201, allocations: 115.6 kB / 20.43 MB, free: 1.465 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.002092/0.002092, allocations: 208.1 kB / 23.74 MB, free: 4.691 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.605/1.605, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.2449/0.2449, allocations: 44.91 MB / 358.8 MB, free: 6.316 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",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.002123/0.002123, allocations: 67.89 kB / 0.4931 GB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4154/0.4175, allocations: 65.47 MB / 0.557 GB, free: 7.574 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002919/0.4204, allocations: 1.475 MB / 0.5585 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009449/0.4214, allocations: 494.7 kB / 0.5589 GB, free: 5.855 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.31e-05/0.4214, allocations: 0 / 0.5589 GB, free: 5.855 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.589e-05/0.4215, allocations: 3.938 kB / 0.5589 GB, free: 5.852 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.511e-05/0.4215, allocations: 7.938 kB / 0.5589 GB, free: 5.844 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002331/0.4218, allocations: 35.89 kB / 0.559 GB, free: 5.809 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.4219, allocations: 35.86 kB / 0.559 GB, free: 5.773 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.332e-05/0.422, allocations: 0 / 0.559 GB, free: 5.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.4221, allocations: 31.91 kB / 0.559 GB, free: 5.742 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.903e-05/0.4222, allocations: 15.92 kB / 0.559 GB, free: 5.727 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.4222, allocations: 4 kB / 0.5591 GB, free: 5.723 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.164e-05/0.4222, allocations: 8 kB / 0.5591 GB, free: 5.715 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.165e-05/0.4222, allocations: 15.92 kB / 0.5591 GB, free: 5.699 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.231e-05/0.4223, allocations: 11.94 kB / 0.5591 GB, free: 5.688 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.4224, allocations: 37.66 kB / 0.5591 GB, free: 5.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.4224, allocations: 0 / 0.5591 GB, free: 5.652 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4224, allocations: 0 / 0.5591 GB, free: 5.652 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.952e-06/0.4224, allocations: 0 / 0.5591 GB, free: 5.652 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.0005046/0.4229, allocations: 278.2 kB / 0.5594 GB, free: 5.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.423, allocations: 8.031 kB / 0.5594 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.165e-05/0.423, allocations: 42.75 kB / 0.5594 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.4232, allocations: 12.92 kB / 0.5594 GB, free: 5.281 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.4234, allocations: 114.4 kB / 0.5596 GB, free: 5.145 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.4234, allocations: 4.359 kB / 0.5596 GB, free: 5.141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.442e-05/0.4234, allocations: 4.312 kB / 0.5596 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001737/0.4236, allocations: 63.53 kB / 0.5596 GB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.4236, allocations: 0 / 0.5596 GB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.4236, allocations: 4 kB / 0.5596 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.4236, allocations: 0 / 0.5596 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.4237, allocations: 23.97 kB / 0.5597 GB, free: 5.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004122/0.4241, allocations: 247.8 kB / 0.5599 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.349e-05/0.4242, allocations: 34.5 kB / 0.5599 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.924e-05/0.4243, allocations: 12.92 kB / 0.5599 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.4243, allocations: 4 kB / 0.5599 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.4243, allocations: 34.5 kB / 0.56 GB, free: 4.645 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.4243, allocations: 0 / 0.56 GB, free: 4.645 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002553/0.4246, allocations: 65.61 kB / 0.56 GB, free: 4.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.4246, allocations: 77.11 kB / 0.5601 GB, free: 4.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.676e-05/0.4247, allocations: 114 kB / 0.5602 GB, free: 4.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.4247, allocations: 33.69 kB / 0.5602 GB, free: 4.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.709e-05/0.4248, allocations: 88.14 kB / 0.5603 GB, free: 4.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.619e-05/0.4248, allocations: 3.953 kB / 0.5603 GB, free: 4.227 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.872e-05/0.4249, allocations: 13.72 kB / 0.5603 GB, free: 4.207 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.425, allocations: 322.8 kB / 0.5607 GB, free: 3.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.401e-05/0.4251, allocations: 12 kB / 0.5607 GB, free: 3.871 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.587e-05/0.4251, allocations: 25.7 kB / 0.5607 GB, free: 3.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.416e-05/0.4252, allocations: 28.88 kB / 0.5607 GB, free: 3.809 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4252, allocations: 0 / 0.5607 GB, free: 3.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001352/0.4254, allocations: 61.61 kB / 0.5608 GB, free: 3.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.4254, allocations: 4 kB / 0.5608 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.4254, allocations: 0 / 0.5608 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.4254, allocations: 4 kB / 0.5608 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.906e-05/0.4255, allocations: 4 kB / 0.5608 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.4255, allocations: 0 / 0.5608 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.365e-05/0.4255, allocations: 19.94 kB / 0.5608 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.4255, allocations: 0 / 0.5608 GB, free: 3.711 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 0.0001035/0.4256, allocations: 117.8 kB / 0.5609 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/0.4257, allocations: 3.938 kB / 0.5609 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.011e-05/0.4257, allocations: 15.61 kB / 0.5609 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.4257, allocations: 0 / 0.5609 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4257, allocations: 0 / 0.5609 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.4257, allocations: 0 / 0.5609 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.4259, allocations: 136.7 kB / 0.5611 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.4259, allocations: 4 kB / 0.5611 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.165e-05/0.4259, allocations: 4 kB / 0.5611 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.4259, allocations: 0 / 0.5611 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.4259, allocations: 384 / 0.5611 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.4259, allocations: 0 / 0.5611 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4259, allocations: 0 / 0.5611 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001768/0.4261, allocations: 159.4 kB / 0.5612 GB, free: 3.207 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.148e-06/0.4261, allocations: 11.97 kB / 0.5612 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.4261, allocations: 0 / 0.5612 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.82e-05/0.4262, allocations: 7.984 kB / 0.5612 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.821e-05/0.4263, allocations: 7.984 kB / 0.5613 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.4263, allocations: 0 / 0.5613 GB, free: 3.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.532e-05/0.4264, allocations: 91.27 kB / 0.5613 GB, free: 3.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4264, allocations: 0 / 0.5613 GB, free: 3.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002294/0.4266, allocations: 12 kB / 0.5614 GB, free: 3.078 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.0005189/0.4271, allocations: 0.6811 MB / 0.562 GB, free: 2.371 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001569/0.4273, allocations: 28.12 kB / 0.562 GB, free: 2.344 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4273, allocations: 0 / 0.562 GB, free: 2.344 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.254e-05/0.4273, allocations: 16.02 kB / 0.5621 GB, free: 2.328 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.4275, allocations: 4 kB / 0.5621 GB, free: 2.324 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001726/0.4293, allocations: 1.277 MB / 0.5633 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.4297, allocations: 0.6807 MB / 0.564 GB, free: 268 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.496e-05/0.4297, allocations: 0 / 0.564 GB, free: 268 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.399e-05/0.4298, allocations: 19.42 kB / 0.564 GB, free: 248 kB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.4298, allocations: 0 / 0.564 GB, free: 248 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/0.462, allocations: 1.659 MB / 0.5656 GB, free: 14.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.53, allocations: 0 / 0.5656 GB, free: 14.71 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.0.0_ModelicaTest.Blocks.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.81810541699815]