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.00155/0.001549, allocations: 107.1 kB / 18.39 MB, free: 4.629 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.001724/0.001724, allocations: 188.1 kB / 19.33 MB, free: 3.699 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.406/1.406, allocations: 222.9 MB / 243 MB, free: 15.14 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.2147/0.2147, allocations: 44.19 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 60.69 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1367, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003253/0.1401, allocations: 1.429 MB / 472.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007758/0.1409, allocations: 423 kB / 472.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.134e-05/0.1409, allocations: 0 / 472.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.3e-05/0.1409, allocations: 3.938 kB / 472.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.798e-05/0.141, allocations: 7.938 kB / 472.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001904/0.1412, allocations: 11.98 kB / 472.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.742e-05/0.1413, allocations: 39.86 kB / 472.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.1414, allocations: 7.984 kB / 472.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.883e-05/0.1415, allocations: 23.91 kB / 472.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.256e-05/0.1416, allocations: 15.92 kB / 472.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.111e-05/0.1416, allocations: 4 kB / 472.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.799e-06/0.1416, allocations: 0 / 472.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.912e-05/0.1417, allocations: 4 kB / 472.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.13e-05/0.1417, allocations: 15.94 kB / 472.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.834e-05/0.1418, allocations: 43.81 kB / 472.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1418, allocations: 0 / 472.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1418, allocations: 4 kB / 472.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1418, allocations: 0 / 472.7 MB, free: 11.61 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.0004923/0.1423, allocations: 343.4 kB / 473.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.1424, allocations: 8.031 kB / 473.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.839e-05/0.1424, allocations: 8.844 kB / 473.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.1426, allocations: 168.3 kB / 473.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.1426, allocations: 16.3 kB / 473.2 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.1426, allocations: 384 / 473.2 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001598/0.1428, allocations: 59.72 kB / 473.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1428, allocations: 0 / 473.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.1428, allocations: 4 kB / 473.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.1428, allocations: 0 / 473.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.047e-05/0.1429, allocations: 19.98 kB / 473.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004004/0.1433, allocations: 268.7 kB / 473.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.469e-05/0.1434, allocations: 38.55 kB / 473.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.304e-05/0.1435, allocations: 12.92 kB / 473.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.1435, allocations: 0 / 473.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/0.1435, allocations: 34.56 kB / 473.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 2.785e-06/0.1435, allocations: 4 kB / 473.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002571/0.1438, allocations: 65.61 kB / 473.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.1439, allocations: 77.11 kB / 473.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.575e-05/0.144, allocations: 105.8 kB / 473.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.144, allocations: 29.7 kB / 474 MB, free: 10.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.41e-05/0.1441, allocations: 88.12 kB / 474 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.1441, allocations: 3.906 kB / 474 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.676e-05/0.1441, allocations: 17.84 kB / 474.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1443, allocations: 322.8 kB / 474.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.411e-05/0.1443, allocations: 8 kB / 474.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.123e-05/0.1444, allocations: 29.7 kB / 474.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.502e-05/0.1445, allocations: 24.78 kB / 474.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1445, allocations: 8 kB / 474.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000129/0.1446, allocations: 61.61 kB / 474.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.1446, allocations: 15.31 kB / 474.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.1446, allocations: 0 / 474.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.1447, allocations: 0 / 474.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.559e-05/0.1447, allocations: 4 kB / 474.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1448, allocations: 0 / 474.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.588e-05/0.1448, allocations: 7.984 kB / 474.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.1448, allocations: 0 / 474.5 MB, free: 9.559 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 (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.0001004/0.1449, allocations: 113.8 kB / 474.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/0.145, allocations: 19.84 kB / 474.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.72e-05/0.145, allocations: 7.484 kB / 474.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.145, allocations: 7.922 kB / 474.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.145, allocations: 0 / 474.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.145, allocations: 0 / 474.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001747/0.1452, allocations: 173.6 kB / 474.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1452, allocations: 0 / 474.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.847e-05/0.1453, allocations: 4 kB / 474.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1453, allocations: 0 / 474.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.1453, allocations: 0 / 474.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1453, allocations: 0 / 474.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1453, allocations: 7.938 kB / 474.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001575/0.1455, allocations: 147.5 kB / 475 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.505e-05/0.1455, allocations: 85.02 kB / 475.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.1456, allocations: 0 / 475.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.078e-05/0.1456, allocations: 7.984 kB / 475.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.172e-05/0.1457, allocations: 11.98 kB / 475.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.1457, allocations: 4.031 kB / 475.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.009e-05/0.1458, allocations: 87.28 kB / 475.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1458, allocations: 0 / 475.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002113/0.146, allocations: 4 kB / 475.2 MB, free: 8.797 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 (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.000126/0.1461, allocations: 95.23 kB / 475.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001596/0.1463, allocations: 31.92 kB / 475.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1463, allocations: 0 / 475.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.586e-05/0.1463, allocations: 16 kB / 475.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002149/0.1466, allocations: 7.922 kB / 475.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003017/0.1469, allocations: 126.5 kB / 475.5 MB, free: 8.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.1471, allocations: 0.6768 MB / 476.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.482e-05/0.1472, allocations: 8.219 kB / 476.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.966e-05/0.1472, allocations: 7.438 kB / 476.2 MB, free: 7.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1472, allocations: 4.062 kB / 476.2 MB, free: 7.766 MB / 350.1 MB Notification: Performance of Templates: time 0.002684/0.1499, allocations: 0.5904 MB / 476.8 MB, free: 7.18 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 -s cvode -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/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) Reference file matches