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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009903/0.0009904, allocations: 97.19 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 175.5 kB / 17.87 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2298/0.2298, allocations: 44.23 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003388, allocations: 8 kB / 409.5 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1473, allocations: 61.93 MB / 471.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002196/0.1496, allocations: 1.147 MB / 472.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008213/0.1504, allocations: 391.5 kB / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.621e-05/0.1505, allocations: 0 / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.675e-05/0.1505, allocations: 0 / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.877e-05/0.1506, allocations: 11.97 kB / 473 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00018/0.1508, allocations: 8 kB / 473 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.899e-05/0.1508, allocations: 23.91 kB / 473 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.151, allocations: 7.984 kB / 473 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.023e-05/0.1511, allocations: 15.98 kB / 473.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.363e-05/0.1512, allocations: 15.92 kB / 473.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.949e-05/0.1512, allocations: 4 kB / 473.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.245e-05/0.1512, allocations: 3.938 kB / 473.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.397e-05/0.1512, allocations: 0 / 473.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.301e-05/0.1513, allocations: 37.64 kB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.254e-05/0.1514, allocations: 19.94 kB / 473.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1514, allocations: 0 / 473.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1514, allocations: 0 / 473.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1514, allocations: 4 kB / 473.1 MB, free: 12.04 MB / 350.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.0005325/0.1519, allocations: 347.5 kB / 473.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.152, allocations: 8.031 kB / 473.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.019e-05/0.152, allocations: 4 kB / 473.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.1522, allocations: 170.9 kB / 473.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.1522, allocations: 3.938 kB / 473.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.1523, allocations: 0 / 473.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.1525, allocations: 71.28 kB / 473.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1525, allocations: 0 / 473.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.205e-05/0.1525, allocations: 4 kB / 473.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.1525, allocations: 4 kB / 473.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.1527, allocations: 19.98 kB / 473.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005184/0.1532, allocations: 268.9 kB / 474 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001075/0.1533, allocations: 26.58 kB / 474 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.1534, allocations: 3.938 kB / 474 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.1534, allocations: 42.61 kB / 474.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.403e-06/0.1534, allocations: 4 kB / 474.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002876/0.1537, allocations: 57.69 kB / 474.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.1538, allocations: 85.09 kB / 474.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.671e-05/0.1539, allocations: 105.8 kB / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.1539, allocations: 29.7 kB / 474.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.959e-05/0.154, allocations: 84.27 kB / 474.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.154, allocations: 11.91 kB / 474.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-06/0.154, allocations: 0 / 474.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1541, allocations: 310.8 kB / 474.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.806e-05/0.1542, allocations: 19.98 kB / 474.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.917e-05/0.1542, allocations: 29.64 kB / 474.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.692e-05/0.1543, allocations: 16.03 kB / 474.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1543, allocations: 0 / 474.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001238/0.1544, allocations: 69.53 kB / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.1544, allocations: 7.938 kB / 474.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1545, allocations: 0 / 474.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.1545, allocations: 0 / 474.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.042e-05/0.1546, allocations: 4 kB / 474.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.1546, allocations: 3.984 kB / 474.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.188e-05/0.1546, allocations: 16 kB / 474.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.1547, allocations: 144 / 474.9 MB, free: 10.02 MB / 350.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 ($PRE.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.765e-05/0.1548, allocations: 122.3 kB / 475 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.649e-05/0.1548, allocations: 7.938 kB / 475.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.644e-05/0.1548, allocations: 11.48 kB / 475.1 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1548, allocations: 4 kB / 475.1 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1548, allocations: 0 / 475.1 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.1548, allocations: 4 kB / 475.1 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.155, allocations: 157.7 kB / 475.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.155, allocations: 0 / 475.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.776e-05/0.1551, allocations: 4 kB / 475.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.748e-06/0.1551, allocations: 3.953 kB / 475.2 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.1551, allocations: 11.92 kB / 475.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.1551, allocations: 0 / 475.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1551, allocations: 0 / 475.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001601/0.1553, allocations: 159.5 kB / 475.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.726e-05/0.1553, allocations: 77.11 kB / 475.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.1553, allocations: 11.94 kB / 475.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.166e-05/0.1554, allocations: 8 kB / 475.5 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.1555, allocations: 11.92 kB / 475.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.1555, allocations: 0 / 475.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.494e-05/0.1556, allocations: 95.28 kB / 475.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1556, allocations: 0 / 475.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002169/0.1558, allocations: 8 kB / 475.6 MB, free: 9.238 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001066/0.1559, allocations: 91.25 kB / 475.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001589/0.1561, allocations: 31.98 kB / 475.7 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1561, allocations: 0 / 475.7 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.821e-05/0.1561, allocations: 15.98 kB / 475.7 MB, free: 9.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.1563, allocations: 8 kB / 475.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003395/0.1566, allocations: 144.4 kB / 475.9 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005397/0.1572, allocations: 0.6809 MB / 476.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.936e-05/0.1572, allocations: 4.062 kB / 476.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.948e-05/0.1572, allocations: 7.438 kB / 476.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1573, allocations: 0 / 476.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of Templates: time 0.002289/0.1595, allocations: 476.6 kB / 477 MB, free: 7.73 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches