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.001504/0.001504, allocations: 177.4 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.406/1.406, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0007194/0.0007195, allocations: 88.94 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3145/0.3145, allocations: 43.56 MB / 362.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005307/0.0005312, allocations: 16 kB / 431.4 MB, free: 5.914 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1198, allocations: 58.85 MB / 490.2 MB, free: 10.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00191/0.1218, allocations: 1.146 MB / 491.4 MB, free: 9.82 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008575/0.1227, allocations: 449.2 kB / 491.8 MB, free: 9.375 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.986e-05/0.1228, allocations: 0 / 491.8 MB, free: 9.375 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.785e-05/0.1228, allocations: 0 / 491.8 MB, free: 9.375 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.041e-05/0.1229, allocations: 3.938 kB / 491.8 MB, free: 9.371 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001868/0.123, allocations: 15.97 kB / 491.8 MB, free: 9.355 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.191e-05/0.1231, allocations: 31.86 kB / 491.9 MB, free: 9.324 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.568e-05/0.1232, allocations: 4 kB / 491.9 MB, free: 9.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.1233, allocations: 11.98 kB / 491.9 MB, free: 9.309 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.419e-05/0.1234, allocations: 23.92 kB / 491.9 MB, free: 9.285 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.127e-05/0.1235, allocations: 0 / 491.9 MB, free: 9.285 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.143e-05/0.1235, allocations: 3.938 kB / 491.9 MB, free: 9.281 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.915e-05/0.1235, allocations: 11.92 kB / 491.9 MB, free: 9.27 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.57e-05/0.1235, allocations: 25.7 kB / 491.9 MB, free: 9.238 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.181e-05/0.1236, allocations: 23.95 kB / 492 MB, free: 9.215 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1236, allocations: 0 / 492 MB, free: 9.215 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1236, allocations: 0 / 492 MB, free: 9.215 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.1237, allocations: 0 / 492 MB, free: 9.215 MB / 378.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.0004836/0.1241, allocations: 351.5 kB / 492.3 MB, free: 8.824 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.1242, allocations: 8.031 kB / 492.3 MB, free: 8.816 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.594e-05/0.1243, allocations: 11.86 kB / 492.3 MB, free: 8.805 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.1244, allocations: 163 kB / 492.5 MB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.1244, allocations: 0 / 492.5 MB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.1244, allocations: 4 kB / 492.5 MB, free: 8.602 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.1246, allocations: 67.33 kB / 492.6 MB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.1247, allocations: 0 / 492.6 MB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.1247, allocations: 4 kB / 492.6 MB, free: 8.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.1247, allocations: 0 / 492.6 MB, free: 8.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.975e-05/0.1248, allocations: 23.94 kB / 492.6 MB, free: 8.496 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004533/0.1252, allocations: 265 kB / 492.8 MB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.406e-05/0.1254, allocations: 34.52 kB / 492.9 MB, free: 8.145 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.591e-05/0.1254, allocations: 20.91 kB / 492.9 MB, free: 8.121 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.1254, allocations: 0 / 492.9 MB, free: 8.121 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.1255, allocations: 30.56 kB / 492.9 MB, free: 8.082 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 9.01e-07/0.1255, allocations: 4 kB / 492.9 MB, free: 8.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002574/0.1258, allocations: 81.47 kB / 493 MB, free: 7.992 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.1258, allocations: 77.11 kB / 493.1 MB, free: 7.898 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.93e-05/0.1259, allocations: 109.8 kB / 493.2 MB, free: 7.781 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.1259, allocations: 25.7 kB / 493.2 MB, free: 7.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.77e-05/0.126, allocations: 84.14 kB / 493.3 MB, free: 7.664 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.126, allocations: 15.95 kB / 493.3 MB, free: 7.648 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.126, allocations: 4 kB / 493.3 MB, free: 7.645 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1262, allocations: 314.8 kB / 493.6 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.429e-05/0.1262, allocations: 15.98 kB / 493.6 MB, free: 7.312 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.452e-05/0.1263, allocations: 25.72 kB / 493.7 MB, free: 7.281 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.163e-05/0.1263, allocations: 16.02 kB / 493.7 MB, free: 7.266 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.1264, allocations: 0 / 493.7 MB, free: 7.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001337/0.1265, allocations: 61.62 kB / 493.7 MB, free: 7.199 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1265, allocations: 8 kB / 493.8 MB, free: 7.191 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1265, allocations: 3.984 kB / 493.8 MB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.1266, allocations: 0 / 493.8 MB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.444e-05/0.1266, allocations: 7.953 kB / 493.8 MB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.1266, allocations: 3.938 kB / 493.8 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.178e-05/0.1267, allocations: 15.98 kB / 493.8 MB, free: 7.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.1267, allocations: 0 / 493.8 MB, free: 7.16 MB / 378.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 9.679e-05/0.1268, allocations: 113.8 kB / 493.9 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.9e-05/0.1269, allocations: 12.05 kB / 493.9 MB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.044e-05/0.1269, allocations: 7.516 kB / 493.9 MB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1269, allocations: 0 / 493.9 MB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1269, allocations: 3.953 kB / 493.9 MB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1269, allocations: 4 kB / 493.9 MB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001607/0.1271, allocations: 169.6 kB / 494.1 MB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.1271, allocations: 4 kB / 494.1 MB, free: 6.797 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.187e-05/0.1271, allocations: 7.984 kB / 494.1 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1271, allocations: 0 / 494.1 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.1272, allocations: 0 / 494.1 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1272, allocations: 0 / 494.1 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1272, allocations: 0 / 494.1 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001769/0.1274, allocations: 163.4 kB / 494.3 MB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.475e-05/0.1274, allocations: 77.11 kB / 494.3 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.1274, allocations: 0 / 494.3 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.974e-05/0.1275, allocations: 11.98 kB / 494.4 MB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.451e-05/0.1276, allocations: 11.98 kB / 494.4 MB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-06/0.1276, allocations: 0 / 494.4 MB, free: 6.496 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.82e-05/0.1276, allocations: 91.3 kB / 494.5 MB, free: 6.406 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1277, allocations: 0 / 494.5 MB, free: 6.406 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002108/0.1279, allocations: 15.86 kB / 494.5 MB, free: 6.391 MB / 378.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.0001278/0.128, allocations: 95.19 kB / 494.6 MB, free: 6.289 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001635/0.1282, allocations: 27.98 kB / 494.6 MB, free: 6.262 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1282, allocations: 0 / 494.6 MB, free: 6.262 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.393e-05/0.1282, allocations: 23.98 kB / 494.6 MB, free: 6.238 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001981/0.1285, allocations: 3.938 kB / 494.6 MB, free: 6.234 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003518/0.1288, allocations: 162.3 kB / 494.8 MB, free: 6.043 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.1291, allocations: 0.6776 MB / 495.5 MB, free: 5.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.618e-05/0.1292, allocations: 15.5 kB / 495.5 MB, free: 5.328 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1292, allocations: 4 kB / 495.5 MB, free: 5.324 MB / 378.7 MB Notification: Performance of Templates: time 0.001982/0.1312, allocations: 0.6209 MB / 496.1 MB, free: 4.707 MB / 378.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/jenkins/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