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.001837/0.001837, allocations: 105.6 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002667/0.002667, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.4 MB, free: 9.059 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2341/0.2341, allocations: 46.11 MB / 343.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 85.2 kB / 417 MB, free: 20.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1448, allocations: 62.45 MB / 479.5 MB, free: 5.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003138/0.148, allocations: 1.517 MB / 481 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001/0.1491, allocations: 482.8 kB / 481.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.402e-05/0.1492, allocations: 4 kB / 481.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.125e-05/0.1492, allocations: 3.938 kB / 481.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.88e-05/0.1493, allocations: 11.92 kB / 481.5 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003171/0.1497, allocations: 15.98 kB / 481.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.1498, allocations: 35.86 kB / 481.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.1499, allocations: 4 kB / 481.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002002/0.1501, allocations: 27.91 kB / 481.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.405e-05/0.1502, allocations: 15.92 kB / 481.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.1503, allocations: 4 kB / 481.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.839e-05/0.1503, allocations: 12 kB / 481.6 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.318e-05/0.1504, allocations: 15.92 kB / 481.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.215e-05/0.1504, allocations: 11.92 kB / 481.6 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.1506, allocations: 35.89 kB / 481.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.1506, allocations: 0 / 481.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1506, allocations: 0 / 481.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1506, allocations: 0 / 481.7 MB, free: 3.348 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.0006003/0.1512, allocations: 347.7 kB / 482 MB, free: 2.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.1513, allocations: 8.031 kB / 482 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001988/0.1515, allocations: 20.83 kB / 482 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.1517, allocations: 180.2 kB / 482.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.1517, allocations: 4.375 kB / 482.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.1517, allocations: 4.375 kB / 482.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.1519, allocations: 63.64 kB / 482.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.152, allocations: 0 / 482.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.152, allocations: 0 / 482.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.152, allocations: 8 kB / 482.3 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001035/0.1521, allocations: 15.98 kB / 482.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005451/0.1527, allocations: 268.9 kB / 482.6 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.1528, allocations: 30.52 kB / 482.6 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.735e-05/0.1529, allocations: 20.91 kB / 482.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.1529, allocations: 7.938 kB / 482.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.1529, allocations: 34.5 kB / 482.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.1529, allocations: 0 / 482.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002782/0.1532, allocations: 61.67 kB / 482.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.365e-05/0.1533, allocations: 85.05 kB / 482.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.842e-05/0.1534, allocations: 109.8 kB / 482.9 MB, free: 1.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.789e-05/0.1534, allocations: 29.83 kB / 482.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.049e-05/0.1535, allocations: 84.14 kB / 483 MB, free: 1.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.519e-05/0.1535, allocations: 11.89 kB / 483 MB, free: 1.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.706e-05/0.1535, allocations: 13.72 kB / 483 MB, free: 1.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1537, allocations: 314.8 kB / 483.4 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.146e-05/0.1537, allocations: 11.98 kB / 483.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.931e-05/0.1538, allocations: 29.7 kB / 483.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.269e-05/0.1539, allocations: 32.81 kB / 483.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1539, allocations: 0 / 483.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001348/0.154, allocations: 61.67 kB / 483.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.1541, allocations: 8 kB / 483.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1541, allocations: 0 / 483.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.1541, allocations: 3.984 kB / 483.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.012e-05/0.1542, allocations: 7.984 kB / 483.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.1542, allocations: 0 / 483.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.986e-05/0.1543, allocations: 11.98 kB / 483.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-06/0.1543, allocations: 0 / 483.5 MB, free: 1.254 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.978e-05/0.1544, allocations: 113.8 kB / 483.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.751e-05/0.1544, allocations: 4 kB / 483.6 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.1545, allocations: 7.531 kB / 483.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1545, allocations: 0 / 483.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1545, allocations: 0 / 483.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.1545, allocations: 0 / 483.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/0.1546, allocations: 169.6 kB / 483.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1547, allocations: 4 kB / 483.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.192e-05/0.1547, allocations: 7.984 kB / 483.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.1547, allocations: 0 / 483.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.495e-06/0.1547, allocations: 384 / 483.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.1547, allocations: 0 / 483.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1547, allocations: 7.938 kB / 483.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001713/0.1549, allocations: 159.3 kB / 484 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-05/0.155, allocations: 85.08 kB / 484.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.155, allocations: 0 / 484.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.243e-05/0.1551, allocations: 7.984 kB / 484.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.83e-05/0.1551, allocations: 8 kB / 484.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.114e-06/0.1552, allocations: 7.984 kB / 484.1 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.209e-05/0.1552, allocations: 83.28 kB / 484.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1552, allocations: 0 / 484.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.1554, allocations: 8 kB / 484.2 MB, free: 0.5 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 0.0001084/0.1555, allocations: 95.25 kB / 484.3 MB, free: 408 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001638/0.1557, allocations: 35.91 kB / 484.3 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1557, allocations: 0 / 484.3 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.886e-05/0.1558, allocations: 8 kB / 484.3 MB, free: 364 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.156, allocations: 11.06 kB / 484.3 MB, free: 356 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003095/0.1563, allocations: 142.6 kB / 484.5 MB, free: 188 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.1566, allocations: 0.6807 MB / 485.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.171e-05/0.1567, allocations: 0 / 485.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.044e-05/0.1567, allocations: 7.438 kB / 485.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1567, allocations: 4 kB / 485.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of Templates: time 0.0031/0.1598, allocations: 0.5344 MB / 485.7 MB, free: 14.93 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