Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001043/0.001043, allocations: 183 kB / 16.63 MB, free: 5.137 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.375/1.375, allocations: 205.1 MB / 222.5 MB, free: 8.48 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.001128/0.001128, allocations: 108 kB / 269.9 MB, free: 8.422 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.342/0.342, allocations: 43.49 MB / 360.7 MB, free: 51.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 55.92 kB / 429.2 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1202, allocations: 57.77 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002902/0.1232, allocations: 1.504 MB / 488.5 MB, free: 11.04 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006907/0.1239, allocations: 464.9 kB / 489 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.906e-05/0.124, allocations: 0 / 489 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.723e-05/0.124, allocations: 3.938 kB / 489 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.893e-05/0.1241, allocations: 7.922 kB / 489 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001778/0.1243, allocations: 11.98 kB / 489 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 6.639e-05/0.1243, allocations: 31.86 kB / 489 MB, free: 10.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.1244, allocations: 11.98 kB / 489 MB, free: 10.51 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.1246, allocations: 8 kB / 489 MB, free: 10.5 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.964e-05/0.1246, allocations: 23.91 kB / 489.1 MB, free: 10.48 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.1246, allocations: 4 kB / 489.1 MB, free: 10.47 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.289e-05/0.1247, allocations: 0 / 489.1 MB, free: 10.47 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.004e-05/0.1247, allocations: 7.922 kB / 489.1 MB, free: 10.46 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.119e-05/0.1247, allocations: 11.94 kB / 489.1 MB, free: 10.45 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.278e-05/0.1248, allocations: 35.89 kB / 489.1 MB, free: 10.42 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1248, allocations: 0 / 489.1 MB, free: 10.42 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.1248, allocations: 3.938 kB / 489.1 MB, free: 10.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.526e-06/0.1248, allocations: 0 / 489.1 MB, free: 10.41 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.0004801/0.1253, allocations: 355.6 kB / 489.5 MB, free: 10.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1254, allocations: 8.031 kB / 489.5 MB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.323e-05/0.1254, allocations: 0.9375 kB / 489.5 MB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/0.1256, allocations: 176.2 kB / 489.6 MB, free: 9.801 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.1256, allocations: 384 / 489.6 MB, free: 9.801 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.1256, allocations: 4.375 kB / 489.6 MB, free: 9.797 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001569/0.1258, allocations: 63.7 kB / 489.7 MB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1258, allocations: 0 / 489.7 MB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.1258, allocations: 4 kB / 489.7 MB, free: 9.719 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.1258, allocations: 7.938 kB / 489.7 MB, free: 9.711 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.484e-05/0.1259, allocations: 23.91 kB / 489.7 MB, free: 9.688 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003816/0.1263, allocations: 264.9 kB / 490 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.267e-05/0.1264, allocations: 30.56 kB / 490 MB, free: 9.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.358e-05/0.1264, allocations: 16.92 kB / 490 MB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.1265, allocations: 3.938 kB / 490.1 MB, free: 9.316 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.1265, allocations: 30.56 kB / 490.1 MB, free: 9.277 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1265, allocations: 0 / 490.1 MB, free: 9.277 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002211/0.1267, allocations: 69.61 kB / 490.2 MB, free: 9.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.1268, allocations: 77.11 kB / 490.2 MB, free: 9.109 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.126e-05/0.1269, allocations: 110 kB / 490.3 MB, free: 8.992 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.1269, allocations: 29.7 kB / 490.4 MB, free: 8.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.372e-05/0.127, allocations: 92.03 kB / 490.5 MB, free: 8.863 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.127, allocations: 4 kB / 490.5 MB, free: 8.859 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.052e-05/0.127, allocations: 13.72 kB / 490.5 MB, free: 8.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1271, allocations: 314.8 kB / 490.8 MB, free: 8.523 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.709e-05/0.1272, allocations: 11.98 kB / 490.8 MB, free: 8.512 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.011e-05/0.1272, allocations: 29.7 kB / 490.8 MB, free: 8.477 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.759e-05/0.1273, allocations: 32.72 kB / 490.8 MB, free: 8.441 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.1273, allocations: 0 / 490.8 MB, free: 8.441 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001197/0.1275, allocations: 61.59 kB / 490.9 MB, free: 8.375 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1275, allocations: 4 kB / 490.9 MB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1275, allocations: 3.984 kB / 490.9 MB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1275, allocations: 0 / 490.9 MB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.512e-05/0.1276, allocations: 8 kB / 490.9 MB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1276, allocations: 0 / 490.9 MB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.696e-05/0.1277, allocations: 16.02 kB / 490.9 MB, free: 8.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-06/0.1277, allocations: 0 / 490.9 MB, free: 8.344 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 (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 7.141e-05/0.1278, allocations: 117.8 kB / 491.1 MB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.344e-05/0.1278, allocations: 0 / 491.1 MB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.781e-05/0.1278, allocations: 3.531 kB / 491.1 MB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1278, allocations: 4 kB / 491.1 MB, free: 8.215 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1278, allocations: 0 / 491.1 MB, free: 8.215 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1278, allocations: 3.938 kB / 491.1 MB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.128, allocations: 169.6 kB / 491.2 MB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.128, allocations: 0 / 491.2 MB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.903e-05/0.128, allocations: 7.984 kB / 491.2 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.128, allocations: 0 / 491.2 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.1281, allocations: 0 / 491.2 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1281, allocations: 4 kB / 491.2 MB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.1281, allocations: 0 / 491.2 MB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003852/0.1285, allocations: 0.7121 MB / 492 MB, free: 7.215 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.071e-05/0.1285, allocations: 81.05 kB / 492 MB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.1285, allocations: 4 kB / 492 MB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.901e-05/0.1286, allocations: 7.984 kB / 492 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.505e-05/0.1287, allocations: 15.92 kB / 492.1 MB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.1287, allocations: 0 / 492.1 MB, free: 7.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.212e-05/0.1287, allocations: 91.56 kB / 492.2 MB, free: 7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1287, allocations: 4.031 kB / 492.2 MB, free: 6.996 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002949/0.129, allocations: 8 kB / 492.2 MB, free: 6.988 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.301e-05/0.1291, allocations: 99.17 kB / 492.3 MB, free: 6.883 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001328/0.1293, allocations: 28.06 kB / 492.3 MB, free: 6.855 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1293, allocations: 0 / 492.3 MB, free: 6.855 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.652e-05/0.1293, allocations: 15.98 kB / 492.3 MB, free: 6.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.1295, allocations: 7.938 kB / 492.3 MB, free: 6.832 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003335/0.1299, allocations: 239 kB / 492.5 MB, free: 6.559 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.1301, allocations: 0.677 MB / 493.2 MB, free: 5.855 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.902e-05/0.1301, allocations: 8.078 kB / 493.2 MB, free: 5.848 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.821e-05/0.1302, allocations: 11.42 kB / 493.2 MB, free: 5.836 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.1302, allocations: 3.938 kB / 493.2 MB, free: 5.832 MB / 378.7 MB Notification: Performance of Templates: time 0.002206/0.1324, allocations: 0.5087 MB / 493.8 MB, free: 5.324 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches