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.001472/0.001472, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.003676/0.003676, allocations: 206.6 kB / 20.75 MB, free: 2.312 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.593/1.593, allocations: 230.4 MB / 254 MB, free: 15.02 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.2462/0.2462, allocations: 46.92 MB / 357 MB, free: 10.2 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.002326/0.002326, allocations: 79.88 kB / 0.491 GB, free: 7.754 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1467, allocations: 66.04 MB / 0.5555 GB, free: 5.582 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003268/0.15, allocations: 1.463 MB / 0.5569 GB, free: 4.102 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009332/0.1509, allocations: 492.4 kB / 0.5574 GB, free: 3.617 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.575e-05/0.151, allocations: 0 / 0.5574 GB, free: 3.617 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.861e-05/0.151, allocations: 3.938 kB / 0.5574 GB, free: 3.613 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.639e-05/0.151, allocations: 3.938 kB / 0.5574 GB, free: 3.609 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.1513, allocations: 35.89 kB / 0.5574 GB, free: 3.574 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.1514, allocations: 35.86 kB / 0.5574 GB, free: 3.539 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.272e-05/0.1515, allocations: 8 kB / 0.5574 GB, free: 3.531 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.1516, allocations: 23.92 kB / 0.5575 GB, free: 3.508 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.747e-05/0.1517, allocations: 23.84 kB / 0.5575 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.1517, allocations: 4 kB / 0.5575 GB, free: 3.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.185e-05/0.1518, allocations: 4 kB / 0.5575 GB, free: 3.477 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.389e-05/0.1518, allocations: 7.984 kB / 0.5575 GB, free: 3.469 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.101e-05/0.1518, allocations: 11.94 kB / 0.5575 GB, free: 3.457 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.1519, allocations: 43.81 kB / 0.5575 GB, free: 3.414 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1519, allocations: 0 / 0.5575 GB, free: 3.414 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1519, allocations: 0 / 0.5575 GB, free: 3.414 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.152, allocations: 3.938 kB / 0.5576 GB, free: 3.41 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.0005399/0.1525, allocations: 351.3 kB / 0.5579 GB, free: 3.02 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.1525, allocations: 12.03 kB / 0.5579 GB, free: 3.008 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.429e-05/0.1526, allocations: 34.75 kB / 0.5579 GB, free: 2.965 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001646/0.1528, allocations: 12.92 kB / 0.5579 GB, free: 2.953 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.153, allocations: 172.3 kB / 0.5581 GB, free: 2.746 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.878e-06/0.153, allocations: 384 / 0.5581 GB, free: 2.746 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.153, allocations: 4.375 kB / 0.5581 GB, free: 2.742 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.1532, allocations: 75.39 kB / 0.5582 GB, free: 2.656 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.1532, allocations: 3.984 kB / 0.5582 GB, free: 2.652 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.1532, allocations: 0 / 0.5582 GB, free: 2.652 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1532, allocations: 4 kB / 0.5582 GB, free: 2.648 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.221e-05/0.1533, allocations: 15.98 kB / 0.5582 GB, free: 2.633 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004237/0.1538, allocations: 268.8 kB / 0.5585 GB, free: 2.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.361e-05/0.1539, allocations: 34.52 kB / 0.5585 GB, free: 2.277 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.562e-05/0.1539, allocations: 16.91 kB / 0.5585 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.1539, allocations: 0 / 0.5585 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.154, allocations: 30.56 kB / 0.5585 GB, free: 2.219 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.154, allocations: 0 / 0.5585 GB, free: 2.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002626/0.1542, allocations: 65.67 kB / 0.5586 GB, free: 2.148 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.364e-05/0.1543, allocations: 81.11 kB / 0.5587 GB, free: 2.051 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.1544, allocations: 109.8 kB / 0.5588 GB, free: 1.934 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.1544, allocations: 33.7 kB / 0.5588 GB, free: 1.895 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.439e-05/0.1545, allocations: 84.08 kB / 0.5589 GB, free: 1.809 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.519e-05/0.1545, allocations: 11.94 kB / 0.5589 GB, free: 1.797 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.634e-05/0.1546, allocations: 13.72 kB / 0.5589 GB, free: 1.777 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1547, allocations: 322.8 kB / 0.5592 GB, free: 1.453 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.224e-05/0.1548, allocations: 16.11 kB / 0.5592 GB, free: 1.438 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.056e-05/0.1548, allocations: 25.7 kB / 0.5593 GB, free: 1.406 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.399e-05/0.1549, allocations: 24.84 kB / 0.5593 GB, free: 1.379 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.1549, allocations: 0 / 0.5593 GB, free: 1.379 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001313/0.155, allocations: 53.69 kB / 0.5593 GB, free: 1.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.155, allocations: 4 kB / 0.5593 GB, free: 1.316 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1551, allocations: 7.938 kB / 0.5594 GB, free: 1.309 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.1551, allocations: 7.969 kB / 0.5594 GB, free: 1.301 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.618e-05/0.1551, allocations: 3.984 kB / 0.5594 GB, free: 1.297 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.1551, allocations: 7.984 kB / 0.5594 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.175e-05/0.1552, allocations: 11.94 kB / 0.5594 GB, free: 1.277 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.1552, allocations: 4 kB / 0.5594 GB, free: 1.273 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.0001072/0.1553, allocations: 117.8 kB / 0.5595 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.472e-05/0.1553, allocations: 384 / 0.5595 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.572e-05/0.1554, allocations: 11.53 kB / 0.5595 GB, free: 1.137 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1554, allocations: 4 kB / 0.5595 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1554, allocations: 0 / 0.5595 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1554, allocations: 3.938 kB / 0.5595 GB, free: 1.129 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.1556, allocations: 165.6 kB / 0.5597 GB, free: 0.918 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.1556, allocations: 0 / 0.5597 GB, free: 0.918 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.987e-05/0.1556, allocations: 7.984 kB / 0.5597 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.1556, allocations: 0 / 0.5597 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.1556, allocations: 0 / 0.5597 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1556, allocations: 0 / 0.5597 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1556, allocations: 0 / 0.5597 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001914/0.1558, allocations: 163.4 kB / 0.5598 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.749e-05/0.1559, allocations: 81.11 kB / 0.5599 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.1559, allocations: 0 / 0.5599 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.446e-05/0.156, allocations: 8.125 kB / 0.5599 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.719e-05/0.156, allocations: 7.984 kB / 0.5599 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.156, allocations: 3.984 kB / 0.5599 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.878e-05/0.1561, allocations: 91.31 kB / 0.56 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1561, allocations: 0 / 0.56 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.1563, allocations: 8 kB / 0.56 GB, free: 0.5195 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.0005238/0.1568, allocations: 0.6811 MB / 0.5607 GB, free: 15.81 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001601/0.157, allocations: 32.02 kB / 0.5607 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.157, allocations: 0 / 0.5607 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.992e-05/0.157, allocations: 11.98 kB / 0.5607 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.1573, allocations: 11.58 kB / 0.5608 GB, free: 15.76 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.1587, allocations: 1.269 MB / 0.562 GB, free: 14.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.159, allocations: 0.6768 MB / 0.5627 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.636e-05/0.1591, allocations: 8 kB / 0.5627 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.952e-05/0.1591, allocations: 11.72 kB / 0.5627 GB, free: 13.69 MB / 430.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1591, allocations: 0 / 0.5627 GB, free: 13.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02559/0.1847, allocations: 1.537 MB / 0.5642 GB, free: 12.21 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.696/7.881, allocations: 6.109 kB / 0.5642 GB, free: 12.21 MB / 430.1 MB " [Timeout remaining time 652] (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: 11.215024939971045]