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.00111/0.00111, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001207/0.001207, allocations: 187 kB / 19.34 MB, free: 3.641 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.354/1.354, allocations: 222.9 MB / 243 MB, free: 15.09 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.2072/0.2072, allocations: 44.18 MB / 337.4 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001962, allocations: 61.89 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1407, allocations: 60.82 MB / 470.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003294/0.144, allocations: 1.448 MB / 472.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008539/0.1449, allocations: 415.1 kB / 472.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.016e-05/0.1449, allocations: 4 kB / 472.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.602e-05/0.145, allocations: 3.938 kB / 472.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.46e-05/0.145, allocations: 7.922 kB / 472.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001793/0.1452, allocations: 11.98 kB / 472.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.397e-05/0.1453, allocations: 27.92 kB / 472.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.991e-05/0.1454, allocations: 11.94 kB / 472.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.867e-05/0.1455, allocations: 23.91 kB / 472.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.629e-05/0.1456, allocations: 15.92 kB / 472.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.1456, allocations: 8 kB / 472.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.387e-06/0.1456, allocations: 3.938 kB / 472.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.779e-05/0.1457, allocations: 7.984 kB / 472.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.716e-05/0.1457, allocations: 19.88 kB / 472.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.737e-05/0.1458, allocations: 31.89 kB / 472.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1458, allocations: 0 / 472.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1458, allocations: 0 / 472.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.329e-06/0.1458, allocations: 0 / 472.7 MB, free: 11.64 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.000455/0.1463, allocations: 347.4 kB / 473.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.1464, allocations: 12.03 kB / 473.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.238e-05/0.1464, allocations: 8.844 kB / 473.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.1465, allocations: 172.3 kB / 473.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.1466, allocations: 384 / 473.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/0.1466, allocations: 4.312 kB / 473.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.1468, allocations: 67.69 kB / 473.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.1468, allocations: 0 / 473.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.1468, allocations: 0 / 473.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.1468, allocations: 4 kB / 473.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001095/0.1469, allocations: 19.98 kB / 473.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000462/0.1474, allocations: 264.8 kB / 473.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.1475, allocations: 34.52 kB / 473.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.05e-05/0.1476, allocations: 16.91 kB / 473.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.1476, allocations: 4 kB / 473.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.1476, allocations: 34.56 kB / 473.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.1477, allocations: 0 / 473.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002485/0.1479, allocations: 57.67 kB / 473.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.148, allocations: 81.05 kB / 473.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.1e-05/0.1481, allocations: 113.8 kB / 473.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.1481, allocations: 25.83 kB / 474 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.619e-05/0.1482, allocations: 88.14 kB / 474 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.454e-05/0.1482, allocations: 11.89 kB / 474.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.683e-05/0.1482, allocations: 17.72 kB / 474.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.1484, allocations: 310.8 kB / 474.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.132e-05/0.1485, allocations: 15.98 kB / 474.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.922e-05/0.1485, allocations: 25.7 kB / 474.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.1487, allocations: 36.75 kB / 474.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1487, allocations: 0 / 474.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001616/0.1488, allocations: 53.62 kB / 474.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.1489, allocations: 8 kB / 474.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.1489, allocations: 4 kB / 474.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.1489, allocations: 0 / 474.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.292e-05/0.149, allocations: 7.984 kB / 474.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.149, allocations: 0 / 474.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.337e-05/0.1491, allocations: 11.92 kB / 474.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.1491, allocations: 8 kB / 474.6 MB, free: 9.57 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 9.411e-05/0.1492, allocations: 113.8 kB / 474.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/0.1493, allocations: 7.906 kB / 474.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.524e-05/0.1493, allocations: 11.48 kB / 474.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1493, allocations: 0 / 474.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1493, allocations: 0 / 474.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1493, allocations: 0 / 474.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002034/0.1496, allocations: 169.6 kB / 474.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1496, allocations: 0 / 474.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.066e-05/0.1496, allocations: 11.98 kB / 474.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1496, allocations: 0 / 474.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.1497, allocations: 0 / 474.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1497, allocations: 0 / 474.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1497, allocations: 0 / 474.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002074/0.1499, allocations: 159.4 kB / 475 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.873e-05/0.15, allocations: 81.16 kB / 475.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.15, allocations: 4.031 kB / 475.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.1501, allocations: 7.984 kB / 475.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.1502, allocations: 7.984 kB / 475.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.1502, allocations: 0 / 475.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.523e-05/0.1503, allocations: 91.27 kB / 475.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1503, allocations: 0 / 475.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003237/0.1506, allocations: 4 kB / 475.2 MB, free: 8.82 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.0001167/0.1507, allocations: 99.25 kB / 475.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001854/0.1509, allocations: 35.91 kB / 475.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1509, allocations: 0 / 475.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.285e-05/0.151, allocations: 12 kB / 475.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.1513, allocations: 7.875 kB / 475.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003389/0.1517, allocations: 122.5 kB / 475.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002902/0.152, allocations: 0.6846 MB / 476.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.794e-05/0.152, allocations: 0 / 476.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.012e-05/0.1521, allocations: 15.42 kB / 476.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1521, allocations: 0 / 476.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of Templates: time 0.003451/0.1555, allocations: 0.5908 MB / 476.8 MB, free: 7.195 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 gbode -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