Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001634/0.001634, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001853/0.001853, allocations: 203.7 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 230.5 MB / 257.4 MB, free: 7.758 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2266/0.2266, allocations: 46.95 MB / 360.8 MB, free: 3.93 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00236/0.00236, allocations: 79.88 kB / 0.4961 GB, free: 7.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3401, allocations: 66.08 MB / 0.5607 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002788/0.3428, allocations: 1.475 MB / 0.5621 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009123/0.3438, allocations: 447 kB / 0.5625 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.79e-05/0.3438, allocations: 0 / 0.5625 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.373e-05/0.3439, allocations: 11.92 kB / 0.5626 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.681e-05/0.3439, allocations: 7.922 kB / 0.5626 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.3442, allocations: 27.92 kB / 0.5626 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.3443, allocations: 27.92 kB / 0.5626 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.349e-05/0.3444, allocations: 11.98 kB / 0.5626 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.3445, allocations: 31.84 kB / 0.5627 GB, free: 2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.447e-05/0.3446, allocations: 15.92 kB / 0.5627 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.569e-05/0.3446, allocations: 4 kB / 0.5627 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.253e-05/0.3446, allocations: 4 kB / 0.5627 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.257e-05/0.3446, allocations: 4 kB / 0.5627 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.824e-05/0.3447, allocations: 19.86 kB / 0.5627 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.3448, allocations: 41.66 kB / 0.5627 GB, free: 1.914 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3448, allocations: 0 / 0.5627 GB, free: 1.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3448, allocations: 0 / 0.5627 GB, free: 1.914 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.3448, allocations: 0 / 0.5627 GB, free: 1.914 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.0004616/0.3452, allocations: 278.2 kB / 0.563 GB, free: 1.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.3453, allocations: 8.031 kB / 0.563 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.316e-05/0.3453, allocations: 30.75 kB / 0.563 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.3455, allocations: 12.92 kB / 0.5631 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.3457, allocations: 130.4 kB / 0.5632 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.3457, allocations: 384 / 0.5632 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.303e-05/0.3457, allocations: 4.312 kB / 0.5632 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.3459, allocations: 89.22 kB / 0.5633 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.3459, allocations: 0 / 0.5633 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.3459, allocations: 0 / 0.5633 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.3459, allocations: 0 / 0.5633 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.822e-05/0.346, allocations: 19.98 kB / 0.5633 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003648/0.3463, allocations: 243.9 kB / 0.5635 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.594e-05/0.3464, allocations: 34.52 kB / 0.5636 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.953e-05/0.3465, allocations: 16.91 kB / 0.5636 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.3465, allocations: 0 / 0.5636 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.3465, allocations: 34.56 kB / 0.5636 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 7.41e-07/0.3465, allocations: 0 / 0.5636 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002271/0.3468, allocations: 61.67 kB / 0.5637 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.3468, allocations: 81.05 kB / 0.5637 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.699e-05/0.3469, allocations: 118 kB / 0.5638 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.3469, allocations: 25.7 kB / 0.5639 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.179e-05/0.347, allocations: 84.14 kB / 0.564 GB, free: 492 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.347, allocations: 11.94 kB / 0.564 GB, free: 480 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.3471, allocations: 13.72 kB / 0.564 GB, free: 460 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3472, allocations: 322.7 kB / 0.5643 GB, free: 128 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.91e-05/0.3472, allocations: 15.98 kB / 0.5643 GB, free: 112 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.113e-05/0.3473, allocations: 55.41 kB / 0.5644 GB, free: 44 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.58e-05/0.3474, allocations: 24.94 kB / 0.5644 GB, free: 16 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.3474, allocations: 0 / 0.5644 GB, free: 16 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001564/0.3476, allocations: 65.75 kB / 0.5644 GB, free: 15.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.3476, allocations: 6.5 kB / 0.5644 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.3476, allocations: 0 / 0.5644 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.3476, allocations: 384 / 0.5644 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.866e-05/0.3477, allocations: 7.984 kB / 0.5645 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.3477, allocations: 0 / 0.5645 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.032e-05/0.3477, allocations: 15.94 kB / 0.5645 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-06/0.3477, allocations: 3.938 kB / 0.5645 GB, free: 15.91 MB / 414.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.194e-05/0.3478, allocations: 121.8 kB / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.3478, allocations: 0 / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.668e-05/0.3479, allocations: 7.625 kB / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.3479, allocations: 4 kB / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.3479, allocations: 0 / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.3479, allocations: 0 / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001649/0.348, allocations: 132.7 kB / 0.5647 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.348, allocations: 0 / 0.5647 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.672e-05/0.3481, allocations: 3.984 kB / 0.5647 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.3481, allocations: 4 kB / 0.5647 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.321e-06/0.3481, allocations: 0 / 0.5647 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3481, allocations: 4 kB / 0.5647 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3481, allocations: 0 / 0.5647 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001772/0.3483, allocations: 159.4 kB / 0.5649 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.578e-06/0.3483, allocations: 4 kB / 0.5649 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.3483, allocations: 0 / 0.5649 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.183e-05/0.3484, allocations: 7.984 kB / 0.5649 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.932e-05/0.3484, allocations: 7.984 kB / 0.5649 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.3484, allocations: 0 / 0.5649 GB, free: 15.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.554e-05/0.3485, allocations: 87.28 kB / 0.565 GB, free: 15.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3485, allocations: 4.031 kB / 0.565 GB, free: 15.3 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002171/0.3487, allocations: 11.98 kB / 0.565 GB, free: 15.29 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.0005306/0.3492, allocations: 0.6772 MB / 0.5657 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001559/0.3494, allocations: 35.8 kB / 0.5657 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3494, allocations: 0 / 0.5657 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.538e-05/0.3494, allocations: 8 kB / 0.5657 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.3496, allocations: 8.094 kB / 0.5657 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.3511, allocations: 1.274 MB / 0.567 GB, free: 13.19 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.209e-05/0.3512, allocations: 63.28 kB / 0.567 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.062e-05/0.3512, allocations: 4 kB / 0.567 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.253e-05/0.3513, allocations: 15.42 kB / 0.567 GB, free: 13.09 MB / 414.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3513, allocations: 0 / 0.567 GB, free: 13.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02595/0.3772, allocations: 2.095 MB / 0.5691 GB, free: 11.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.55, allocations: 7.016 kB / 0.5691 GB, free: 11.08 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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_trunk_ModelicaTest.Blocks.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.545826132409275]