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.001272/0.001272, allocations: 123 kB / 17.79 MB, free: 5.246 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.001369/0.001369, allocations: 211.2 kB / 20.75 MB, free: 2.293 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.664/1.664, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2466/0.2466, allocations: 44.89 MB / 355.1 MB, free: 12.34 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.002008/0.002008, allocations: 67.89 kB / 499.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.146, allocations: 65.42 MB / 0.5517 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002875/0.1489, allocations: 1.465 MB / 0.5532 GB, free: 8.816 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009862/0.1499, allocations: 496.5 kB / 0.5536 GB, free: 8.328 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.252e-05/0.15, allocations: 0 / 0.5536 GB, free: 8.328 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.604e-05/0.15, allocations: 0 / 0.5536 GB, free: 8.328 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.58e-05/0.15, allocations: 7.875 kB / 0.5536 GB, free: 8.32 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.1503, allocations: 35.95 kB / 0.5537 GB, free: 8.285 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.1504, allocations: 39.8 kB / 0.5537 GB, free: 8.246 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.517e-05/0.1505, allocations: 4 kB / 0.5537 GB, free: 8.242 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.1506, allocations: 19.98 kB / 0.5537 GB, free: 8.223 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.669e-05/0.1507, allocations: 23.84 kB / 0.5538 GB, free: 8.199 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.647e-05/0.1507, allocations: 4 kB / 0.5538 GB, free: 8.195 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.104e-05/0.1508, allocations: 8 kB / 0.5538 GB, free: 8.188 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.494e-05/0.1508, allocations: 7.922 kB / 0.5538 GB, free: 8.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.046e-05/0.1508, allocations: 11.94 kB / 0.5538 GB, free: 8.168 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001327/0.151, allocations: 48.03 kB / 0.5538 GB, free: 8.121 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.151, allocations: 0 / 0.5538 GB, free: 8.121 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.847e-06/0.151, allocations: 4 kB / 0.5538 GB, free: 8.117 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.151, allocations: 0 / 0.5538 GB, free: 8.117 MB / 414.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.0005693/0.1515, allocations: 351.3 kB / 0.5542 GB, free: 7.727 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1516, allocations: 12.03 kB / 0.5542 GB, free: 7.715 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.751e-05/0.1516, allocations: 30.75 kB / 0.5542 GB, free: 7.676 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.1518, allocations: 16.92 kB / 0.5542 GB, free: 7.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.1521, allocations: 176.3 kB / 0.5544 GB, free: 7.449 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.1521, allocations: 8.375 kB / 0.5544 GB, free: 7.441 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.1521, allocations: 8.312 kB / 0.5544 GB, free: 7.434 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.1523, allocations: 63.45 kB / 0.5545 GB, free: 7.359 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.1523, allocations: 0 / 0.5545 GB, free: 7.359 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.1523, allocations: 4 kB / 0.5545 GB, free: 7.355 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.1523, allocations: 0 / 0.5545 GB, free: 7.355 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001049/0.1524, allocations: 19.98 kB / 0.5545 GB, free: 7.336 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000451/0.1529, allocations: 268.8 kB / 0.5548 GB, free: 7.023 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.655e-05/0.1529, allocations: 26.58 kB / 0.5548 GB, free: 6.988 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.576e-05/0.153, allocations: 16.91 kB / 0.5548 GB, free: 6.969 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.153, allocations: 3.938 kB / 0.5548 GB, free: 6.965 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.1531, allocations: 34.56 kB / 0.5548 GB, free: 6.922 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.303e-06/0.1531, allocations: 4 kB / 0.5548 GB, free: 6.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002751/0.1533, allocations: 57.67 kB / 0.5549 GB, free: 6.855 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.1534, allocations: 81.11 kB / 0.555 GB, free: 6.758 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.1535, allocations: 113.8 kB / 0.5551 GB, free: 6.637 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.1535, allocations: 29.7 kB / 0.5551 GB, free: 6.602 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.244e-05/0.1536, allocations: 88.12 kB / 0.5552 GB, free: 6.512 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.1536, allocations: 3.953 kB / 0.5552 GB, free: 6.508 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.995e-05/0.1537, allocations: 21.84 kB / 0.5552 GB, free: 6.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.1538, allocations: 318.8 kB / 0.5555 GB, free: 6.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.54e-05/0.1539, allocations: 15.92 kB / 0.5555 GB, free: 6.145 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.153e-05/0.1539, allocations: 33.69 kB / 0.5556 GB, free: 6.105 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.5e-05/0.154, allocations: 24.84 kB / 0.5556 GB, free: 6.078 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.154, allocations: 0 / 0.5556 GB, free: 6.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001402/0.1542, allocations: 53.72 kB / 0.5556 GB, free: 6.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1542, allocations: 8 kB / 0.5557 GB, free: 6.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1542, allocations: 3.984 kB / 0.5557 GB, free: 6.008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.1542, allocations: 0 / 0.5557 GB, free: 6.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.545e-05/0.1543, allocations: 4 kB / 0.5557 GB, free: 6.004 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1543, allocations: 3.938 kB / 0.5557 GB, free: 6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.07e-05/0.1543, allocations: 11.94 kB / 0.5557 GB, free: 5.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.1544, allocations: 4 kB / 0.5557 GB, free: 5.984 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 0.0001013/0.1545, allocations: 116 kB / 0.5558 GB, free: 5.863 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.714e-05/0.1545, allocations: 8 kB / 0.5558 GB, free: 5.855 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.799e-05/0.1545, allocations: 7.531 kB / 0.5558 GB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-06/0.1545, allocations: 3.938 kB / 0.5558 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1545, allocations: 0 / 0.5558 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1545, allocations: 0 / 0.5558 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.1547, allocations: 169.6 kB / 0.556 GB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.1547, allocations: 0 / 0.556 GB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.079e-05/0.1548, allocations: 7.984 kB / 0.556 GB, free: 5.621 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.1548, allocations: 0 / 0.556 GB, free: 5.621 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-06/0.1548, allocations: 0 / 0.556 GB, free: 5.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1548, allocations: 8 kB / 0.556 GB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1548, allocations: 0 / 0.556 GB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001934/0.155, allocations: 163.4 kB / 0.5561 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.763e-05/0.155, allocations: 77.11 kB / 0.5562 GB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.155, allocations: 0 / 0.5562 GB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.56e-05/0.1551, allocations: 7.984 kB / 0.5562 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.285e-05/0.1552, allocations: 12.02 kB / 0.5562 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/0.1552, allocations: 4 kB / 0.5562 GB, free: 5.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.595e-05/0.1552, allocations: 87.59 kB / 0.5563 GB, free: 5.234 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1552, allocations: 0 / 0.5563 GB, free: 5.234 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002284/0.1555, allocations: 15.94 kB / 0.5563 GB, free: 5.219 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.0005117/0.156, allocations: 0.6812 MB / 0.557 GB, free: 4.512 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001724/0.1561, allocations: 31.91 kB / 0.557 GB, free: 4.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.1561, allocations: 4 kB / 0.557 GB, free: 4.477 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.722e-05/0.1562, allocations: 8 kB / 0.557 GB, free: 4.469 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.1564, allocations: 7.938 kB / 0.5571 GB, free: 4.461 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.1578, allocations: 1.262 MB / 0.5583 GB, free: 3.117 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.1582, allocations: 0.6846 MB / 0.559 GB, free: 2.406 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.052e-05/0.1582, allocations: 288 / 0.559 GB, free: 2.406 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.67e-05/0.1582, allocations: 11.44 kB / 0.559 GB, free: 2.395 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1582, allocations: 4 kB / 0.559 GB, free: 2.391 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02439/0.1826, allocations: 1.542 MB / 0.5605 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.061/8.243, allocations: 0 / 0.5605 GB, free: 0.9141 MB / 414.1 MB " [Timeout remaining time 652] (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: 11.560223039705306]