Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001212/0.001212, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001919/0.001919, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2233/0.2233, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003123/0.0003124, allocations: 8 kB / 419.5 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1405, allocations: 63.55 MB / 483.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001904/0.1425, allocations: 1.193 MB / 484.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009776/0.1435, allocations: 471 kB / 484.7 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.831e-05/0.1435, allocations: 0 / 484.7 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.677e-05/0.1436, allocations: 0 / 484.7 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.544e-05/0.1437, allocations: 11.91 kB / 484.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002389/0.1439, allocations: 19.98 kB / 484.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.144, allocations: 35.86 kB / 484.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.1442, allocations: 8 kB / 484.8 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.1443, allocations: 23.91 kB / 484.8 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.74e-05/0.1444, allocations: 15.92 kB / 484.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.1444, allocations: 7.938 kB / 484.9 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.1e-05/0.1445, allocations: 4 kB / 484.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.394e-05/0.1445, allocations: 7.938 kB / 484.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.248e-05/0.1445, allocations: 45.61 kB / 484.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.1446, allocations: 31.89 kB / 484.9 MB, free: 2.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1447, allocations: 0 / 484.9 MB, free: 2.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1447, allocations: 0 / 484.9 MB, free: 2.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.077e-06/0.1447, allocations: 0 / 484.9 MB, free: 2.277 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.0004819/0.1452, allocations: 347.7 kB / 485.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1452, allocations: 12.88 kB / 485.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/0.1454, allocations: 16.94 kB / 485.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.1455, allocations: 180.2 kB / 485.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.1456, allocations: 4.375 kB / 485.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.158e-06/0.1456, allocations: 384 / 485.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001685/0.1458, allocations: 67.7 kB / 485.6 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.1458, allocations: 0 / 485.6 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.1458, allocations: 0 / 485.6 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1458, allocations: 4 kB / 485.6 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.231e-05/0.1459, allocations: 23.98 kB / 485.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000399/0.1463, allocations: 268.8 kB / 485.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.94e-05/0.1464, allocations: 38.56 kB / 485.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.2e-05/0.1465, allocations: 16.92 kB / 485.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.1465, allocations: 0 / 485.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.1465, allocations: 34.56 kB / 485.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.1465, allocations: 3.938 kB / 485.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002571/0.1468, allocations: 81.5 kB / 486 MB, free: 1.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.1469, allocations: 81.11 kB / 486.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.734e-05/0.1469, allocations: 105.8 kB / 486.2 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.147, allocations: 38.06 kB / 486.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.824e-05/0.147, allocations: 80.14 kB / 486.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.1471, allocations: 7.906 kB / 486.3 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.503e-05/0.1471, allocations: 13.72 kB / 486.3 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1472, allocations: 322.9 kB / 486.6 MB, free: 348 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.873e-05/0.1473, allocations: 12 kB / 486.7 MB, free: 336 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.369e-05/0.1473, allocations: 29.7 kB / 486.7 MB, free: 300 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.212e-05/0.1474, allocations: 32.78 kB / 486.7 MB, free: 264 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1474, allocations: 0 / 486.7 MB, free: 264 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000129/0.1476, allocations: 69.64 kB / 486.8 MB, free: 188 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.1476, allocations: 8 kB / 486.8 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1476, allocations: 0 / 486.8 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.1476, allocations: 0 / 486.8 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.625e-05/0.1477, allocations: 4 kB / 486.8 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1477, allocations: 0 / 486.8 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.167e-05/0.1478, allocations: 15.98 kB / 486.8 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.1478, allocations: 0 / 486.8 MB, free: 160 kB / 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.461e-05/0.1479, allocations: 113.8 kB / 486.9 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.774e-05/0.1479, allocations: 11.91 kB / 486.9 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.36e-05/0.1479, allocations: 3.531 kB / 486.9 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.1479, allocations: 0 / 486.9 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.148, allocations: 3.984 kB / 486.9 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.148, allocations: 0 / 486.9 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.1481, allocations: 169.6 kB / 487.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1482, allocations: 4 kB / 487.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.732e-05/0.1482, allocations: 4 kB / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.1482, allocations: 0 / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.1482, allocations: 0 / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.1482, allocations: 3.938 kB / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1482, allocations: 0 / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.1484, allocations: 159.5 kB / 487.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.461e-05/0.1485, allocations: 84.95 kB / 487.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.1485, allocations: 4 kB / 487.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.707e-05/0.1486, allocations: 15.98 kB / 487.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.1486, allocations: 7.984 kB / 487.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.1486, allocations: 4 kB / 487.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.192e-05/0.1487, allocations: 87.27 kB / 487.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1487, allocations: 4.312 kB / 487.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002074/0.1489, allocations: 8 kB / 487.5 MB, free: 15.39 MB / 366.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.0001096/0.149, allocations: 95.19 kB / 487.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001516/0.1492, allocations: 31.92 kB / 487.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1492, allocations: 0 / 487.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.063e-05/0.1493, allocations: 19.98 kB / 487.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002123/0.1495, allocations: 7.938 kB / 487.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002965/0.1498, allocations: 136.6 kB / 487.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.1501, allocations: 0.6809 MB / 488.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.855e-05/0.1501, allocations: 0 / 488.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.148e-05/0.1501, allocations: 19.48 kB / 488.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1501, allocations: 0 / 488.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of Templates: time 0.002549/0.1527, allocations: 0.4922 MB / 489 MB, free: 13.85 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches