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.0009606/0.0009606, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009591/0.0009591, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8906/0.8906, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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.2916/0.2916, allocations: 32.79 MB / 293.5 MB, free: 1.238 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 439.6 MB, free: 4.273 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.418e-05/1.534e-05, allocations: 2.281 kB / 439.6 MB, free: 4.27 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00164/0.001655, allocations: 1.466 MB / 441 MB, free: 2.793 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006668/0.002322, allocations: 446.8 kB / 441.5 MB, free: 2.352 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.106e-05/0.002363, allocations: 0 / 441.5 MB, free: 2.352 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.924e-05/0.002382, allocations: 3.938 kB / 441.5 MB, free: 2.348 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 3.377e-05/0.002416, allocations: 11.91 kB / 441.5 MB, free: 2.336 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001803/0.002596, allocations: 27.86 kB / 441.5 MB, free: 2.309 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 8.313e-05/0.002679, allocations: 35.86 kB / 441.5 MB, free: 2.273 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.096e-05/0.00274, allocations: 11.98 kB / 441.6 MB, free: 2.262 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.002847, allocations: 27.97 kB / 441.6 MB, free: 2.234 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.255e-05/0.00289, allocations: 15.92 kB / 441.6 MB, free: 2.219 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.026e-05/0.0029, allocations: 4 kB / 441.6 MB, free: 2.215 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.8e-05/0.002928, allocations: 4 kB / 441.6 MB, free: 2.211 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.768e-06/0.002938, allocations: 3.984 kB / 441.6 MB, free: 2.207 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.592e-05/0.002954, allocations: 11.98 kB / 441.6 MB, free: 2.195 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 8.82e-05/0.003042, allocations: 51.75 kB / 441.7 MB, free: 2.145 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.373e-06/0.003043, allocations: 0 / 441.7 MB, free: 2.145 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.003044, allocations: 0 / 441.7 MB, free: 2.145 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.003049, allocations: 4 kB / 441.7 MB, free: 2.141 MB / 410.7 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.0004045/0.003453, allocations: 274.2 kB / 441.9 MB, free: 1.844 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.003501, allocations: 8.031 kB / 442 MB, free: 1.836 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.908e-05/0.00354, allocations: 34.75 kB / 442 MB, free: 1.793 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.003653, allocations: 12.92 kB / 442 MB, free: 1.781 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.003861, allocations: 121.7 kB / 442.1 MB, free: 1.637 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.003874, allocations: 384 / 442.1 MB, free: 1.637 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.003887, allocations: 8.359 kB / 442.1 MB, free: 1.629 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.004065, allocations: 85.66 kB / 442.2 MB, free: 1.527 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.004075, allocations: 4.188 kB / 442.2 MB, free: 1.523 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.00409, allocations: 12.06 kB / 442.2 MB, free: 1.512 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.004099, allocations: 4 kB / 442.2 MB, free: 1.508 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.329e-05/0.004162, allocations: 15.98 kB / 442.2 MB, free: 1.492 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003932/0.004556, allocations: 224 kB / 442.5 MB, free: 1.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.459e-05/0.00463, allocations: 34.5 kB / 442.5 MB, free: 1.188 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.847e-05/0.004669, allocations: 24.84 kB / 442.5 MB, free: 1.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.004691, allocations: 4 kB / 442.5 MB, free: 1.156 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.00472, allocations: 34.5 kB / 442.6 MB, free: 1.113 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.004721, allocations: 7.938 kB / 442.6 MB, free: 1.105 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002031/0.004924, allocations: 57.67 kB / 442.6 MB, free: 1.043 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.004977, allocations: 81.11 kB / 442.7 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.27e-05/0.005059, allocations: 109.8 kB / 442.8 MB, free: 0.8281 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.005076, allocations: 25.7 kB / 442.8 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.549e-05/0.005132, allocations: 88.14 kB / 442.9 MB, free: 0.707 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.442e-05/0.005156, allocations: 3.953 kB / 442.9 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.472e-05/0.005191, allocations: 25.83 kB / 443 MB, free: 0.6719 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.005301, allocations: 310.8 kB / 443.3 MB, free: 368 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.159e-05/0.005333, allocations: 15.98 kB / 443.3 MB, free: 352 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.546e-05/0.005379, allocations: 51.36 kB / 443.3 MB, free: 288 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.114e-05/0.00543, allocations: 24.84 kB / 443.3 MB, free: 260 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.005431, allocations: 0 / 443.3 MB, free: 260 kB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.597e-05/0.005527, allocations: 65.61 kB / 443.4 MB, free: 188 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.005544, allocations: 4 kB / 443.4 MB, free: 184 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.005549, allocations: 0 / 443.4 MB, free: 184 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.005566, allocations: 8.031 kB / 443.4 MB, free: 176 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.085e-05/0.005637, allocations: 3.984 kB / 443.4 MB, free: 172 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.005643, allocations: 0 / 443.4 MB, free: 172 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.951e-05/0.005673, allocations: 11.95 kB / 443.4 MB, free: 160 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.005679, allocations: 3.938 kB / 443.4 MB, free: 156 kB / 410.7 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 7.724e-05/0.005756, allocations: 114.5 kB / 443.6 MB, free: 32 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.508e-05/0.005771, allocations: 3.938 kB / 443.6 MB, free: 28 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.42e-05/0.005795, allocations: 11.62 kB / 443.6 MB, free: 16 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.005798, allocations: 4 kB / 443.6 MB, free: 12 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.005803, allocations: 4 kB / 443.6 MB, free: 8 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.005805, allocations: 0 / 443.6 MB, free: 8 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1979/0.2037, allocations: 125.8 kB / 443.7 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.2037, allocations: 8.344 kB / 443.7 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.086e-05/0.2037, allocations: 6.109 kB / 443.7 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2037, allocations: 2.969 kB / 443.7 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.2037, allocations: 0 / 443.7 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.2037, allocations: 0 / 443.7 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2037, allocations: 0 / 443.7 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001176/0.2038, allocations: 151.3 kB / 443.9 MB, free: 45.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-06/0.2038, allocations: 11.62 kB / 443.9 MB, free: 45.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.2039, allocations: 4.641 kB / 443.9 MB, free: 45.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.304e-05/0.2039, allocations: 7.125 kB / 443.9 MB, free: 45.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.056e-05/0.2039, allocations: 10.8 kB / 443.9 MB, free: 45.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-06/0.2039, allocations: 0 / 443.9 MB, free: 45.65 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.429e-05/0.204, allocations: 92.95 kB / 444 MB, free: 45.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.204, allocations: 0 / 444 MB, free: 45.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001556/0.2041, allocations: 7.656 kB / 444 MB, free: 45.57 MB / 410.7 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.0002159/0.2043, allocations: 0.6777 MB / 444.7 MB, free: 44.92 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001114/0.2045, allocations: 32.08 kB / 444.7 MB, free: 44.92 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.2045, allocations: 0 / 444.7 MB, free: 44.92 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.007e-05/0.2045, allocations: 14.38 kB / 444.7 MB, free: 44.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001684/0.2047, allocations: 5.312 kB / 444.7 MB, free: 44.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006479/0.2053, allocations: 1.265 MB / 446 MB, free: 43.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.117e-05/0.2053, allocations: 66.28 kB / 446.1 MB, free: 43.72 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.702e-05/0.2054, allocations: 3.188 kB / 446.1 MB, free: 43.72 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.65e-05/0.2054, allocations: 15.28 kB / 446.1 MB, free: 43.71 MB / 410.7 MB Notification: Performance of SimCode: time 6.71e-07/0.2054, allocations: 0 / 446.1 MB, free: 43.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01454/0.2199, allocations: 2.225 MB / 448.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.768/6.988, allocations: 12.66 kB / 448.3 MB, free: 42.88 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/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: 9.11287206504494]