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.001589/0.001588, allocations: 108.1 kB / 17.21 MB, free: 6.289 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.001676/0.001676, allocations: 194 kB / 18.12 MB, free: 5.383 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.478/1.478, allocations: 222.9 MB / 241.8 MB, free: 15.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2414/0.2414, allocations: 44.17 MB / 336.1 MB, free: 3.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 61.53 kB / 407.7 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1601, allocations: 60.82 MB / 468.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002777/0.1629, allocations: 1.49 MB / 470 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007361/0.1637, allocations: 419 kB / 470.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.198e-05/0.1637, allocations: 0 / 470.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.253e-05/0.1638, allocations: 8 kB / 470.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.247e-05/0.1638, allocations: 3.938 kB / 470.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001646/0.164, allocations: 15.98 kB / 470.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.652e-05/0.1641, allocations: 31.92 kB / 470.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.226e-05/0.1642, allocations: 7.984 kB / 470.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.261e-05/0.1643, allocations: 27.84 kB / 470.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.898e-05/0.1643, allocations: 11.92 kB / 470.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.1644, allocations: 0 / 470.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.426e-05/0.1644, allocations: 4 kB / 470.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.132e-05/0.1644, allocations: 8 kB / 470.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.166e-05/0.1644, allocations: 15.92 kB / 470.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.176e-05/0.1645, allocations: 27.89 kB / 470.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1645, allocations: 0 / 470.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1645, allocations: 0 / 470.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.1646, allocations: 0 / 470.6 MB, free: 12.8 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.0004476/0.165, allocations: 343.7 kB / 470.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.1651, allocations: 12.03 kB / 470.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.045e-05/0.1651, allocations: 12.84 kB / 470.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.1652, allocations: 176.3 kB / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.1652, allocations: 384 / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.1653, allocations: 4.312 kB / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.1654, allocations: 67.64 kB / 471.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.545e-06/0.1654, allocations: 0 / 471.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.1655, allocations: 0 / 471.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.1655, allocations: 0 / 471.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.865e-05/0.1656, allocations: 23.98 kB / 471.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003663/0.1659, allocations: 268.8 kB / 471.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.682e-05/0.166, allocations: 30.56 kB / 471.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.928e-05/0.1661, allocations: 16.91 kB / 471.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.1661, allocations: 7.938 kB / 471.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.1662, allocations: 34.56 kB / 471.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1662, allocations: 0 / 471.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002303/0.1664, allocations: 57.67 kB / 471.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.1664, allocations: 77.11 kB / 471.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.651e-05/0.1665, allocations: 113.8 kB / 471.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.1666, allocations: 25.7 kB / 471.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.279e-05/0.1666, allocations: 88.27 kB / 471.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/0.1666, allocations: 7.906 kB / 471.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.982e-05/0.1667, allocations: 21.7 kB / 471.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1668, allocations: 310.8 kB / 472.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.422e-05/0.1668, allocations: 19.92 kB / 472.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.364e-05/0.1669, allocations: 21.72 kB / 472.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.597e-05/0.167, allocations: 28.78 kB / 472.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.167, allocations: 4.031 kB / 472.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001421/0.1672, allocations: 57.67 kB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.1672, allocations: 4 kB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1672, allocations: 0 / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1672, allocations: 0 / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.506e-05/0.1673, allocations: 4 kB / 472.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.1673, allocations: 8.234 kB / 472.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.688e-05/0.1674, allocations: 4 kB / 472.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.1674, allocations: 8 kB / 472.4 MB, free: 10.73 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.925e-05/0.1675, allocations: 113.8 kB / 472.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.152e-05/0.1675, allocations: 11.89 kB / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.1676, allocations: 11.62 kB / 472.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1676, allocations: 3.984 kB / 472.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.1676, allocations: 3.938 kB / 472.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1676, allocations: 0 / 472.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.1678, allocations: 169.6 kB / 472.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1678, allocations: 0 / 472.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.981e-05/0.1678, allocations: 4 kB / 472.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.1678, allocations: 4 kB / 472.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.1679, allocations: 3.984 kB / 472.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.1679, allocations: 4 kB / 472.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1679, allocations: 3.984 kB / 472.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000172/0.168, allocations: 155.4 kB / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.197e-05/0.1681, allocations: 81.02 kB / 473 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.1681, allocations: 3.984 kB / 473 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.172e-05/0.1682, allocations: 11.97 kB / 473 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.1683, allocations: 7.984 kB / 473 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.1683, allocations: 4 kB / 473 MB, free: 10.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.71e-05/0.1683, allocations: 87.27 kB / 473.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1683, allocations: 0 / 473.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002158/0.1686, allocations: 8 kB / 473.1 MB, free: 9.961 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.0001136/0.1687, allocations: 99.72 kB / 473.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001531/0.1688, allocations: 27.98 kB / 473.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1689, allocations: 0 / 473.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.448e-05/0.1689, allocations: 15.98 kB / 473.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/0.1692, allocations: 7.875 kB / 473.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003242/0.1695, allocations: 132.3 kB / 473.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.1698, allocations: 0.681 MB / 474 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.071e-05/0.1698, allocations: 4 kB / 474 MB, free: 8.934 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.064e-05/0.1698, allocations: 11.42 kB / 474 MB, free: 8.922 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1699, allocations: 0 / 474 MB, free: 8.922 MB / 350.1 MB Notification: Performance of Templates: time 0.002665/0.1725, allocations: 0.4892 MB / 474.5 MB, free: 8.434 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/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_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches