Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002436/0.002435, allocations: 187.1 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.246/2.246, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00118/0.00118, allocations: 94.86 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2923/0.2923, allocations: 43.56 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000473/0.0004732, allocations: 16 kB / 431.4 MB, free: 20.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1237, allocations: 58.86 MB / 490.2 MB, free: 9.344 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001992/0.1258, allocations: 1.144 MB / 491.4 MB, free: 8.184 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009196/0.1267, allocations: 436.3 kB / 491.8 MB, free: 7.75 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.421e-05/0.1268, allocations: 0 / 491.8 MB, free: 7.75 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.505e-05/0.1268, allocations: 0 / 491.8 MB, free: 7.75 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.435e-05/0.1269, allocations: 7.922 kB / 491.8 MB, free: 7.742 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001561/0.127, allocations: 11.98 kB / 491.8 MB, free: 7.73 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 7.347e-05/0.1271, allocations: 23.97 kB / 491.8 MB, free: 7.707 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.301e-05/0.1272, allocations: 4 kB / 491.8 MB, free: 7.703 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.912e-05/0.1273, allocations: 15.92 kB / 491.9 MB, free: 7.688 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.832e-05/0.1274, allocations: 19.97 kB / 491.9 MB, free: 7.668 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.326e-05/0.1275, allocations: 0 / 491.9 MB, free: 7.668 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.523e-05/0.1275, allocations: 0 / 491.9 MB, free: 7.668 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.849e-05/0.1275, allocations: 11.94 kB / 491.9 MB, free: 7.656 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 2.962e-05/0.1276, allocations: 29.69 kB / 491.9 MB, free: 7.621 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 6.32e-05/0.1276, allocations: 15.97 kB / 491.9 MB, free: 7.605 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1276, allocations: 4 kB / 491.9 MB, free: 7.602 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1277, allocations: 0 / 491.9 MB, free: 7.602 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.1277, allocations: 0 / 491.9 MB, free: 7.602 MB / 330.7 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.0005427/0.1282, allocations: 347.5 kB / 492.3 MB, free: 7.215 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.1283, allocations: 12.03 kB / 492.3 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.257e-05/0.1283, allocations: 0 / 492.3 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/0.1285, allocations: 171 kB / 492.5 MB, free: 6.996 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.1285, allocations: 0 / 492.5 MB, free: 6.996 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/0.1285, allocations: 11.88 kB / 492.5 MB, free: 6.984 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002037/0.1287, allocations: 67.38 kB / 492.5 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1288, allocations: 0 / 492.5 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.1288, allocations: 4 kB / 492.5 MB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.1288, allocations: 0 / 492.5 MB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.129, allocations: 23.98 kB / 492.6 MB, free: 6.879 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004909/0.1295, allocations: 280.7 kB / 492.8 MB, free: 6.555 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001248/0.1296, allocations: 34.5 kB / 492.9 MB, free: 6.512 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.1296, allocations: 4.062 kB / 492.9 MB, free: 6.508 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.1297, allocations: 30.56 kB / 492.9 MB, free: 6.469 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.653e-06/0.1297, allocations: 0 / 492.9 MB, free: 6.469 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003342/0.13, allocations: 69.67 kB / 493 MB, free: 6.395 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.1301, allocations: 85.05 kB / 493 MB, free: 6.293 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.1302, allocations: 109.8 kB / 493.2 MB, free: 6.176 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.1303, allocations: 25.7 kB / 493.2 MB, free: 6.145 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.986e-05/0.1303, allocations: 158.6 kB / 493.3 MB, free: 5.988 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.1304, allocations: 4.031 kB / 493.3 MB, free: 5.984 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-06/0.1304, allocations: 4 kB / 493.3 MB, free: 5.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1305, allocations: 310.8 kB / 493.6 MB, free: 5.668 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.066e-05/0.1306, allocations: 15.98 kB / 493.7 MB, free: 5.652 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.265e-05/0.1307, allocations: 29.7 kB / 493.7 MB, free: 5.617 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.507e-05/0.1308, allocations: 8 kB / 493.7 MB, free: 5.609 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1308, allocations: 4.031 kB / 493.7 MB, free: 5.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002057/0.131, allocations: 61.67 kB / 493.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.1311, allocations: 8 kB / 493.8 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1311, allocations: 0 / 493.8 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.1311, allocations: 0 / 493.8 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.613e-05/0.1312, allocations: 7.938 kB / 493.8 MB, free: 5.523 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.1312, allocations: 0 / 493.8 MB, free: 5.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.1313, allocations: 19.94 kB / 493.8 MB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.1314, allocations: 0 / 493.8 MB, free: 5.504 MB / 330.7 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 0.0001014/0.1315, allocations: 117.8 kB / 493.9 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.659e-05/0.1315, allocations: 7.906 kB / 493.9 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.1316, allocations: 7.516 kB / 493.9 MB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.1316, allocations: 0 / 493.9 MB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.1316, allocations: 0 / 493.9 MB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1316, allocations: 3.938 kB / 493.9 MB, free: 5.359 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.1318, allocations: 173.6 kB / 494.1 MB, free: 5.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1318, allocations: 0 / 494.1 MB, free: 5.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.884e-05/0.1319, allocations: 4 kB / 494.1 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1319, allocations: 0 / 494.1 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.132, allocations: 0 / 494.1 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.132, allocations: 0 / 494.1 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.132, allocations: 4 kB / 494.1 MB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.1323, allocations: 163.4 kB / 494.3 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.285e-05/0.1323, allocations: 77.11 kB / 494.3 MB, free: 4.863 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.1324, allocations: 4 kB / 494.3 MB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.1325, allocations: 11.98 kB / 494.4 MB, free: 4.848 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.582e-05/0.1326, allocations: 12.06 kB / 494.4 MB, free: 4.836 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.1326, allocations: 3.984 kB / 494.4 MB, free: 4.832 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.626e-05/0.1327, allocations: 95.61 kB / 494.5 MB, free: 4.738 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1327, allocations: 0 / 494.5 MB, free: 4.738 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002879/0.133, allocations: 4 kB / 494.5 MB, free: 4.734 MB / 330.7 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.0001381/0.1332, allocations: 91.25 kB / 494.6 MB, free: 4.633 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002161/0.1334, allocations: 31.98 kB / 494.6 MB, free: 4.602 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1334, allocations: 0 / 494.6 MB, free: 4.602 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.861e-05/0.1335, allocations: 23.92 kB / 494.6 MB, free: 4.578 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001792/0.1337, allocations: 7.391 kB / 494.6 MB, free: 4.574 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003783/0.1341, allocations: 162.3 kB / 494.8 MB, free: 4.387 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.1344, allocations: 0.6848 MB / 495.5 MB, free: 3.676 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.38e-05/0.1345, allocations: 15.38 kB / 495.5 MB, free: 3.66 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1345, allocations: 4.062 kB / 495.5 MB, free: 3.656 MB / 330.7 MB Notification: Performance of Templates: time 0.002455/0.1369, allocations: 0.6134 MB / 496.1 MB, free: 3.043 MB / 330.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches