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.001088/0.001088, allocations: 96.16 kB / 18.01 MB, free: 5.734 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.001368/0.001368, allocations: 177.7 kB / 18.91 MB, free: 4.871 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.365/1.365, allocations: 223.3 MB / 243 MB, free: 180 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2101/0.2101, allocations: 44.25 MB / 338.3 MB, free: 2.621 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004906/0.0004907, allocations: 8 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.141, allocations: 61.92 MB / 472.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001936/0.143, allocations: 1.163 MB / 474.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006939/0.1437, allocations: 411.1 kB / 474.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.455e-05/0.1438, allocations: 4 kB / 474.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.617e-05/0.1438, allocations: 0 / 474.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.496e-05/0.1439, allocations: 3.938 kB / 474.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000181/0.1441, allocations: 15.98 kB / 474.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.102e-05/0.1441, allocations: 31.92 kB / 474.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.597e-05/0.1442, allocations: 19.84 kB / 474.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.109e-05/0.1443, allocations: 15.94 kB / 474.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.501e-05/0.1444, allocations: 15.92 kB / 474.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.1444, allocations: 0 / 474.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.16e-05/0.1445, allocations: 4 kB / 474.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.826e-05/0.1445, allocations: 3.984 kB / 474.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.404e-05/0.1445, allocations: 41.62 kB / 474.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.766e-05/0.1446, allocations: 19.95 kB / 474.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1446, allocations: 0 / 474.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1446, allocations: 0 / 474.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1446, allocations: 0 / 474.6 MB, free: 11.55 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.0004586/0.1451, allocations: 351.7 kB / 475 MB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1451, allocations: 8.031 kB / 475 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.907e-05/0.1452, allocations: 4.938 kB / 475 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.1453, allocations: 172.2 kB / 475.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.1453, allocations: 4.312 kB / 475.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.1453, allocations: 384 / 475.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001657/0.1455, allocations: 71.64 kB / 475.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.1455, allocations: 0 / 475.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.1456, allocations: 0 / 475.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.1456, allocations: 4 kB / 475.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.677e-05/0.1457, allocations: 19.98 kB / 475.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004308/0.1461, allocations: 268.9 kB / 475.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.18e-05/0.1462, allocations: 34.52 kB / 475.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.468e-05/0.1463, allocations: 20.91 kB / 475.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.1463, allocations: 0 / 475.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.1463, allocations: 38.56 kB / 475.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.1463, allocations: 0 / 475.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002504/0.1466, allocations: 65.58 kB / 475.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/0.1467, allocations: 85.11 kB / 475.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.509e-05/0.1467, allocations: 105.8 kB / 475.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.1468, allocations: 29.77 kB / 475.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.491e-05/0.1468, allocations: 92.14 kB / 476 MB, free: 9.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.475e-05/0.1468, allocations: 0 / 476 MB, free: 9.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.558e-05/0.1469, allocations: 13.7 kB / 476 MB, free: 9.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.147, allocations: 318.8 kB / 476.3 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.131e-05/0.147, allocations: 15.98 kB / 476.3 MB, free: 9.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.336e-05/0.1471, allocations: 25.72 kB / 476.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.711e-05/0.1472, allocations: 32.81 kB / 476.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1472, allocations: 0 / 476.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001343/0.1474, allocations: 65.58 kB / 476.4 MB, free: 9.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.1474, allocations: 4 kB / 476.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1474, allocations: 3.938 kB / 476.5 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.1474, allocations: 7.938 kB / 476.5 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.232e-05/0.1475, allocations: 11.98 kB / 476.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1475, allocations: 320 / 476.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.313e-05/0.1476, allocations: 8 kB / 476.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.481e-06/0.1476, allocations: 0 / 476.5 MB, free: 9.465 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 8.896e-05/0.1477, allocations: 121.8 kB / 476.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.1477, allocations: 0 / 476.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.814e-05/0.1477, allocations: 15.48 kB / 476.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.1477, allocations: 8.078 kB / 476.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1478, allocations: 0 / 476.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1478, allocations: 3.984 kB / 476.6 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.1479, allocations: 173.5 kB / 476.8 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1479, allocations: 0 / 476.8 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.253e-05/0.148, allocations: 4 kB / 476.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.148, allocations: 0 / 476.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.148, allocations: 3.984 kB / 476.8 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.148, allocations: 0 / 476.8 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.148, allocations: 3.984 kB / 476.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001732/0.1482, allocations: 159.4 kB / 477 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.502e-05/0.1483, allocations: 81.11 kB / 477 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.1483, allocations: 7.984 kB / 477.1 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.616e-05/0.1484, allocations: 8 kB / 477.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.906e-05/0.1484, allocations: 12.02 kB / 477.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.1484, allocations: 0 / 477.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.172e-05/0.1485, allocations: 91.27 kB / 477.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1485, allocations: 0 / 477.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002168/0.1487, allocations: 4 kB / 477.2 MB, free: 8.688 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 9.248e-05/0.1488, allocations: 91.78 kB / 477.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001505/0.149, allocations: 35.98 kB / 477.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.149, allocations: 0 / 477.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.427e-05/0.149, allocations: 19.92 kB / 477.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.1493, allocations: 7.938 kB / 477.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003507/0.1496, allocations: 166.2 kB / 477.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.1499, allocations: 0.681 MB / 478.2 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.798e-05/0.15, allocations: 15.42 kB / 478.2 MB, free: 7.605 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.15, allocations: 0 / 478.2 MB, free: 7.605 MB / 350.1 MB Notification: Performance of Templates: time 0.002276/0.1523, allocations: 0.629 MB / 478.8 MB, free: 6.98 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 -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