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.001105/0.001105, allocations: 104.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2516/0.2516, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 74.25 kB / 417.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1646, allocations: 62.44 MB / 480 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002971/0.1677, allocations: 1.464 MB / 481.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008434/0.1685, allocations: 474.8 kB / 481.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.502e-05/0.1686, allocations: 11.94 kB / 481.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.389e-05/0.1687, allocations: 3.984 kB / 481.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.025e-05/0.1687, allocations: 3.938 kB / 482 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002336/0.169, allocations: 19.92 kB / 482 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.1691, allocations: 43.84 kB / 482 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.79e-05/0.1692, allocations: 11.98 kB / 482 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.1693, allocations: 19.92 kB / 482 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.071e-05/0.1694, allocations: 19.92 kB / 482.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.1694, allocations: 4 kB / 482.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.616e-05/0.1695, allocations: 8 kB / 482.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.995e-05/0.1695, allocations: 11.92 kB / 482.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.898e-05/0.1695, allocations: 15.92 kB / 482.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001116/0.1696, allocations: 27.91 kB / 482.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1696, allocations: 0 / 482.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1697, allocations: 4 kB / 482.1 MB, free: 3.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1697, allocations: 0 / 482.1 MB, free: 3.141 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.0005347/0.1702, allocations: 351.7 kB / 482.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1703, allocations: 16.02 kB / 482.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001872/0.1705, allocations: 16.84 kB / 482.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.1707, allocations: 188.2 kB / 482.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.1707, allocations: 384 / 482.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.301e-05/0.1707, allocations: 384 / 482.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.1709, allocations: 67.69 kB / 482.8 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.1709, allocations: 0 / 482.8 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.1709, allocations: 7.938 kB / 482.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1709, allocations: 0 / 482.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.998e-05/0.171, allocations: 23.92 kB / 482.8 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004003/0.1714, allocations: 260.9 kB / 483 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.47e-05/0.1715, allocations: 34.56 kB / 483.1 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.208e-05/0.1716, allocations: 16.92 kB / 483.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.1716, allocations: 3.938 kB / 483.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.1717, allocations: 34.56 kB / 483.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.392e-06/0.1717, allocations: 0 / 483.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002442/0.1719, allocations: 65.61 kB / 483.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.172, allocations: 77.11 kB / 483.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.094e-05/0.1721, allocations: 110 kB / 483.4 MB, free: 1.691 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.1721, allocations: 29.7 kB / 483.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.989e-05/0.1721, allocations: 92.12 kB / 483.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.1722, allocations: 3.906 kB / 483.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.213e-05/0.1722, allocations: 17.72 kB / 483.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.1723, allocations: 318.8 kB / 483.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.551e-05/0.1724, allocations: 8 kB / 483.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.127e-05/0.1724, allocations: 29.7 kB / 483.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.123e-05/0.1725, allocations: 32.72 kB / 483.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1725, allocations: 0 / 483.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000118/0.1726, allocations: 65.58 kB / 484 MB, free: 1.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.1727, allocations: 4 kB / 484 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-06/0.1727, allocations: 0 / 484 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.1727, allocations: 0 / 484 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.056e-05/0.1728, allocations: 4 kB / 484 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.1728, allocations: 0 / 484 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.456e-05/0.1728, allocations: 16.02 kB / 484 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.1729, allocations: 0 / 484 MB, free: 1.043 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 7.862e-05/0.1729, allocations: 117.8 kB / 484.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.318e-05/0.173, allocations: 0 / 484.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.21e-05/0.173, allocations: 3.531 kB / 484.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.173, allocations: 4.375 kB / 484.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.173, allocations: 3.984 kB / 484.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.173, allocations: 0 / 484.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.1732, allocations: 169.5 kB / 484.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1732, allocations: 7.938 kB / 484.3 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.512e-05/0.1732, allocations: 4 kB / 484.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.1732, allocations: 0 / 484.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.1733, allocations: 0 / 484.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.1733, allocations: 8 kB / 484.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/0.1733, allocations: 3.938 kB / 484.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001624/0.1734, allocations: 155.4 kB / 484.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.641e-05/0.1735, allocations: 77.25 kB / 484.5 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.1735, allocations: 8 kB / 484.5 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.069e-05/0.1736, allocations: 11.97 kB / 484.6 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.963e-05/0.1736, allocations: 7.984 kB / 484.6 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.1737, allocations: 0 / 484.6 MB, free: 388 kB / 350.1 MB Notification: Performance of sorting global known variables: time 6.648e-05/0.1737, allocations: 91.27 kB / 484.6 MB, free: 296 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1737, allocations: 3.938 kB / 484.7 MB, free: 292 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002055/0.1739, allocations: 4 kB / 484.7 MB, free: 288 kB / 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 0.0001061/0.1741, allocations: 95.28 kB / 484.7 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001564/0.1742, allocations: 27.98 kB / 484.8 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1742, allocations: 0 / 484.8 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.469e-05/0.1743, allocations: 11.98 kB / 484.8 MB, free: 144 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.1745, allocations: 14.59 kB / 484.8 MB, free: 132 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002982/0.1748, allocations: 130.5 kB / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.1751, allocations: 0.6768 MB / 485.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.004e-05/0.1751, allocations: 4 kB / 485.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.872e-05/0.1752, allocations: 7.438 kB / 485.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1752, allocations: 0 / 485.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of Templates: time 0.002867/0.178, allocations: 0.6009 MB / 486.2 MB, free: 14.66 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