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.001584/0.001584, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001964/0.001964, allocations: 214 kB / 23.73 MB, free: 4.16 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.506/1.506, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2219/0.2219, allocations: 44.93 MB / 358.8 MB, free: 6.035 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.002117/0.002117, allocations: 67.91 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.344, allocations: 65.47 MB / 0.5569 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002703/0.3467, allocations: 1.474 MB / 0.5584 GB, free: 6.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008581/0.3476, allocations: 451 kB / 0.5588 GB, free: 5.625 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.642e-05/0.3476, allocations: 0 / 0.5588 GB, free: 5.625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.659e-05/0.3477, allocations: 0 / 0.5588 GB, free: 5.625 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.125e-05/0.3477, allocations: 11.88 kB / 0.5588 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002246/0.3479, allocations: 27.97 kB / 0.5589 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.348, allocations: 43.78 kB / 0.5589 GB, free: 5.543 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.758e-05/0.3481, allocations: 3.984 kB / 0.5589 GB, free: 5.539 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.3483, allocations: 20 kB / 0.5589 GB, free: 5.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.252e-05/0.3483, allocations: 15.86 kB / 0.5589 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.435e-05/0.3483, allocations: 8 kB / 0.5589 GB, free: 5.496 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.491e-05/0.3484, allocations: 15.92 kB / 0.559 GB, free: 5.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.45e-05/0.3484, allocations: 7.984 kB / 0.559 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.42e-05/0.3484, allocations: 11.94 kB / 0.559 GB, free: 5.461 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.3485, allocations: 41.64 kB / 0.559 GB, free: 5.422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3485, allocations: 0 / 0.559 GB, free: 5.422 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3485, allocations: 0 / 0.559 GB, free: 5.422 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.3485, allocations: 0 / 0.559 GB, free: 5.422 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.0004402/0.349, allocations: 274.2 kB / 0.5593 GB, free: 5.125 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.349, allocations: 8.031 kB / 0.5593 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.756e-05/0.3491, allocations: 42.75 kB / 0.5593 GB, free: 5.066 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.3492, allocations: 12.92 kB / 0.5593 GB, free: 5.055 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.3494, allocations: 114.5 kB / 0.5594 GB, free: 4.918 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.34e-06/0.3494, allocations: 384 / 0.5595 GB, free: 4.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.3494, allocations: 8.375 kB / 0.5595 GB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.3496, allocations: 89.16 kB / 0.5595 GB, free: 4.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.3496, allocations: 3.938 kB / 0.5595 GB, free: 4.801 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.3496, allocations: 4 kB / 0.5596 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.3496, allocations: 3.938 kB / 0.5596 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.714e-05/0.3497, allocations: 23.98 kB / 0.5596 GB, free: 4.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003644/0.3501, allocations: 231.9 kB / 0.5598 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.556e-05/0.3502, allocations: 30.62 kB / 0.5598 GB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.599e-05/0.3502, allocations: 20.78 kB / 0.5598 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.162e-05/0.3502, allocations: 0 / 0.5598 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.3502, allocations: 34.56 kB / 0.5599 GB, free: 4.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.12e-07/0.3502, allocations: 0 / 0.5599 GB, free: 4.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002423/0.3505, allocations: 65.77 kB / 0.5599 GB, free: 4.324 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.3505, allocations: 77.11 kB / 0.56 GB, free: 4.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.513e-05/0.3506, allocations: 109.8 kB / 0.5601 GB, free: 4.113 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.3507, allocations: 29.7 kB / 0.5601 GB, free: 4.078 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.122e-05/0.3507, allocations: 84.14 kB / 0.5602 GB, free: 3.992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.883e-05/0.3507, allocations: 11.89 kB / 0.5602 GB, free: 3.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.577e-05/0.3508, allocations: 17.7 kB / 0.5603 GB, free: 3.957 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.3509, allocations: 318.8 kB / 0.5606 GB, free: 3.637 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.033e-05/0.351, allocations: 15.98 kB / 0.5606 GB, free: 3.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.557e-05/0.351, allocations: 47.42 kB / 0.5606 GB, free: 3.562 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.77e-05/0.3511, allocations: 32.98 kB / 0.5607 GB, free: 3.527 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3511, allocations: 0 / 0.5607 GB, free: 3.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001272/0.3512, allocations: 57.67 kB / 0.5607 GB, free: 3.465 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.3512, allocations: 4 kB / 0.5607 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.3512, allocations: 0 / 0.5607 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.3513, allocations: 4 kB / 0.5607 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.906e-05/0.3513, allocations: 7.922 kB / 0.5607 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.3513, allocations: 4 kB / 0.5607 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.568e-05/0.3514, allocations: 7.953 kB / 0.5607 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.3514, allocations: 4 kB / 0.5607 GB, free: 3.434 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 8.894e-05/0.3515, allocations: 121.8 kB / 0.5609 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/0.3515, allocations: 4 kB / 0.5609 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.543e-05/0.3515, allocations: 8 kB / 0.5609 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.3515, allocations: 0 / 0.5609 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.3515, allocations: 4 kB / 0.5609 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.3515, allocations: 0 / 0.5609 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001601/0.3517, allocations: 136.6 kB / 0.561 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3517, allocations: 3.938 kB / 0.561 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.117e-05/0.3517, allocations: 7.984 kB / 0.561 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.3517, allocations: 4 kB / 0.561 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.3518, allocations: 0 / 0.561 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3518, allocations: 0 / 0.561 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3518, allocations: 0 / 0.561 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001796/0.3519, allocations: 159.4 kB / 0.5612 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.046e-05/0.3519, allocations: 4 kB / 0.5612 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.352, allocations: 4 kB / 0.5612 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.547e-05/0.3521, allocations: 7.984 kB / 0.5612 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.273e-05/0.3521, allocations: 7.984 kB / 0.5612 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-06/0.3521, allocations: 4.031 kB / 0.5612 GB, free: 2.895 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.263e-05/0.3522, allocations: 87.28 kB / 0.5613 GB, free: 2.809 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3522, allocations: 0 / 0.5613 GB, free: 2.809 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002176/0.3524, allocations: 4 kB / 0.5613 GB, free: 2.805 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.0004779/0.3528, allocations: 0.6812 MB / 0.5619 GB, free: 2.098 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001454/0.353, allocations: 35.91 kB / 0.562 GB, free: 2.062 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.353, allocations: 0 / 0.562 GB, free: 2.062 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.694e-05/0.353, allocations: 12.03 kB / 0.562 GB, free: 2.051 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.3533, allocations: 2.188 kB / 0.562 GB, free: 2.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.3546, allocations: 1.27 MB / 0.5632 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.773e-05/0.3547, allocations: 67.28 kB / 0.5633 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.302e-05/0.3547, allocations: 3.938 kB / 0.5633 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.832e-05/0.3547, allocations: 19.5 kB / 0.5633 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3547, allocations: 0 / 0.5633 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02714/0.3819, allocations: 2.087 MB / 0.5654 GB, free: 14.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.68, allocations: 13.47 kB / 0.5654 GB, free: 14.62 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.738474014215171]