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.001762/0.001762, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002257/0.002257, allocations: 210.2 kB / 23.73 MB, free: 4.523 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.442/1.442, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.2224/0.2224, allocations: 46.96 MB / 360.9 MB, free: 4.059 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.001919/0.001919, allocations: 75.81 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3317, allocations: 66.05 MB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002997/0.3347, allocations: 1.453 MB / 0.562 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009233/0.3356, allocations: 455 kB / 0.5624 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.56e-05/0.3357, allocations: 0 / 0.5624 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.888e-05/0.3357, allocations: 3.938 kB / 0.5624 GB, free: 2.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.24e-05/0.3357, allocations: 3.938 kB / 0.5624 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002726/0.336, allocations: 35.89 kB / 0.5625 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.3361, allocations: 31.92 kB / 0.5625 GB, free: 2.238 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.3362, allocations: 4 kB / 0.5625 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.3364, allocations: 31.78 kB / 0.5625 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.317e-05/0.3364, allocations: 23.92 kB / 0.5626 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.279e-05/0.3364, allocations: 0 / 0.5626 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.969e-05/0.3365, allocations: 12 kB / 0.5626 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.433e-05/0.3365, allocations: 3.938 kB / 0.5626 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.823e-05/0.3365, allocations: 15.92 kB / 0.5626 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.3367, allocations: 41.66 kB / 0.5626 GB, free: 2.109 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3367, allocations: 0 / 0.5626 GB, free: 2.109 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3367, allocations: 0 / 0.5626 GB, free: 2.109 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.3367, allocations: 0 / 0.5626 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.0004589/0.3371, allocations: 282.2 kB / 0.5629 GB, free: 1.805 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.3372, allocations: 12.03 kB / 0.5629 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.037e-05/0.3372, allocations: 34.75 kB / 0.563 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.3373, allocations: 8.938 kB / 0.563 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/0.3376, allocations: 114.5 kB / 0.5631 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.3376, allocations: 8.375 kB / 0.5631 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.3376, allocations: 384 / 0.5631 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.3378, allocations: 93.16 kB / 0.5632 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3378, allocations: 0 / 0.5632 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.3378, allocations: 0 / 0.5632 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.3378, allocations: 4 kB / 0.5632 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.635e-05/0.3379, allocations: 19.98 kB / 0.5632 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003747/0.3382, allocations: 239.9 kB / 0.5634 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.376e-05/0.3383, allocations: 34.5 kB / 0.5635 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.528e-05/0.3384, allocations: 8.922 kB / 0.5635 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.3384, allocations: 4 kB / 0.5635 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.3384, allocations: 30.56 kB / 0.5635 GB, free: 1.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.3384, allocations: 0 / 0.5635 GB, free: 1.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002448/0.3387, allocations: 65.67 kB / 0.5636 GB, free: 1.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.3387, allocations: 81.11 kB / 0.5636 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.409e-05/0.3388, allocations: 117.7 kB / 0.5637 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.3388, allocations: 29.7 kB / 0.5638 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.278e-05/0.3389, allocations: 88.12 kB / 0.5639 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.3389, allocations: 3.953 kB / 0.5639 GB, free: 0.668 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.3389, allocations: 17.66 kB / 0.5639 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3391, allocations: 326.8 kB / 0.5642 GB, free: 324 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.608e-05/0.3391, allocations: 8 kB / 0.5642 GB, free: 316 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.542e-05/0.3392, allocations: 59.53 kB / 0.5643 GB, free: 244 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.708e-05/0.3393, allocations: 24.84 kB / 0.5643 GB, free: 216 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3393, allocations: 0 / 0.5643 GB, free: 216 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000122/0.3394, allocations: 53.81 kB / 0.5643 GB, free: 156 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.3394, allocations: 11.94 kB / 0.5643 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3394, allocations: 0 / 0.5643 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.3394, allocations: 3.984 kB / 0.5643 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.595e-05/0.3395, allocations: 4 kB / 0.5644 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.3395, allocations: 0 / 0.5644 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.756e-05/0.3396, allocations: 15.97 kB / 0.5644 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.3396, allocations: 4 kB / 0.5644 GB, free: 116 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.0001132/0.3397, allocations: 113.8 kB / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.3397, allocations: 4 kB / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.262e-05/0.3397, allocations: 7.625 kB / 0.5645 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3397, allocations: 3.984 kB / 0.5645 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3397, allocations: 4 kB / 0.5645 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3398, allocations: 0 / 0.5645 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001688/0.3399, allocations: 132.7 kB / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3399, allocations: 4 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.65e-05/0.34, allocations: 4 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.34, allocations: 0 / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.34, allocations: 4 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.34, allocations: 4 kB / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.34, allocations: 0 / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001831/0.3402, allocations: 159.4 kB / 0.5648 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.838e-06/0.3402, allocations: 4 kB / 0.5648 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.3402, allocations: 0 / 0.5648 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.52e-05/0.3403, allocations: 12.02 kB / 0.5648 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.358e-05/0.3403, allocations: 7.984 kB / 0.5648 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.3403, allocations: 0 / 0.5648 GB, free: 15.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.27e-05/0.3404, allocations: 95.58 kB / 0.5649 GB, free: 15.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3404, allocations: 0 / 0.5649 GB, free: 15.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002137/0.3406, allocations: 8 kB / 0.5649 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.0004803/0.3411, allocations: 0.6849 MB / 0.5656 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000158/0.3412, allocations: 32.02 kB / 0.5656 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3412, allocations: 0 / 0.5656 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.76e-05/0.3413, allocations: 11.98 kB / 0.5656 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.000216/0.3415, allocations: 8 kB / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.3428, allocations: 1.266 MB / 0.5669 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.751e-05/0.3429, allocations: 59.34 kB / 0.5669 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.039e-05/0.3429, allocations: 8.062 kB / 0.5669 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.702e-05/0.3429, allocations: 15.42 kB / 0.5669 GB, free: 13.28 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.343, allocations: 0 / 0.5669 GB, free: 13.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02545/0.3684, allocations: 2.107 MB / 0.569 GB, free: 11.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.74, allocations: 13.31 kB / 0.569 GB, free: 11.29 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.788037240999984]