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.001515/0.001515, allocations: 97.11 kB / 17 MB, free: 6.477 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.001807/0.001807, allocations: 185.7 kB / 17.89 MB, free: 5.922 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.672/1.672, allocations: 223.3 MB / 241.9 MB, free: 344 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.2396/0.2396, allocations: 44.24 MB / 337.3 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004937/0.0004938, allocations: 19.92 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1762/0.1767, allocations: 61.91 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002586/0.1793, allocations: 1.147 MB / 472.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009927/0.1804, allocations: 391.4 kB / 473.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.679e-05/0.1804, allocations: 4 kB / 473.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.089e-05/0.1805, allocations: 0 / 473.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.1806, allocations: 11.92 kB / 473.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.1809, allocations: 7.984 kB / 473.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.181, allocations: 31.86 kB / 473.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.1812, allocations: 7.984 kB / 473.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.1814, allocations: 27.91 kB / 473.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.1815, allocations: 11.92 kB / 473.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.295e-05/0.1816, allocations: 0 / 473.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.408e-05/0.1816, allocations: 4 kB / 473.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.115e-05/0.1816, allocations: 7.938 kB / 473.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.351e-05/0.1817, allocations: 29.7 kB / 473.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.491e-05/0.1818, allocations: 19.97 kB / 473.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.1818, allocations: 0 / 473.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.158e-06/0.1818, allocations: 0 / 473.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1818, allocations: 0 / 473.3 MB, free: 11.99 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.0007219/0.1825, allocations: 343.5 kB / 473.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.332e-05/0.1826, allocations: 8.031 kB / 473.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.932e-05/0.1827, allocations: 8 kB / 473.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/0.1829, allocations: 182.9 kB / 473.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.1829, allocations: 0 / 473.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.437e-05/0.183, allocations: 0 / 473.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.1833, allocations: 67.28 kB / 473.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.1833, allocations: 3.938 kB / 473.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.422e-05/0.1834, allocations: 0 / 473.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1834, allocations: 0 / 473.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001393/0.1835, allocations: 27.98 kB / 473.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006979/0.1842, allocations: 260.9 kB / 474.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.1844, allocations: 38.5 kB / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.753e-05/0.1845, allocations: 24.91 kB / 474.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.1845, allocations: 0 / 474.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.1845, allocations: 34.56 kB / 474.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.1845, allocations: 0 / 474.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003722/0.1849, allocations: 65.77 kB / 474.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.562e-05/0.185, allocations: 85.05 kB / 474.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.1851, allocations: 109.8 kB / 474.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1852, allocations: 25.7 kB / 474.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.886e-05/0.1853, allocations: 88.14 kB / 474.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.1853, allocations: 3.906 kB / 474.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-06/0.1853, allocations: 0 / 474.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.1855, allocations: 318.8 kB / 474.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.137e-05/0.1856, allocations: 12.03 kB / 474.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.69e-05/0.1856, allocations: 29.7 kB / 475 MB, free: 10.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.602e-05/0.1857, allocations: 15.98 kB / 475 MB, free: 10.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1857, allocations: 0 / 475 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001979/0.1859, allocations: 69.58 kB / 475.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.186, allocations: 4 kB / 475.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.186, allocations: 0 / 475.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.186, allocations: 0 / 475.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.391e-05/0.1861, allocations: 19.86 kB / 475.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.1861, allocations: 0 / 475.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.664e-05/0.1862, allocations: 16 kB / 475.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.1862, allocations: 3.984 kB / 475.1 MB, free: 9.93 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 ($PRE.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001061/0.1863, allocations: 110.4 kB / 475.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.842e-05/0.1864, allocations: 7.953 kB / 475.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.369e-05/0.1864, allocations: 11.48 kB / 475.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1864, allocations: 144 / 475.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1865, allocations: 4 kB / 475.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.1865, allocations: 3.984 kB / 475.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002193/0.1867, allocations: 161.6 kB / 475.4 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1867, allocations: 0 / 475.4 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.121e-05/0.1868, allocations: 7.984 kB / 475.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.804e-06/0.1868, allocations: 7.953 kB / 475.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.1868, allocations: 4 kB / 475.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.1868, allocations: 0 / 475.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1868, allocations: 0 / 475.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002181/0.1871, allocations: 155.4 kB / 475.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.69e-05/0.1871, allocations: 81.09 kB / 475.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.1872, allocations: 11.98 kB / 475.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.1873, allocations: 8 kB / 475.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.1873, allocations: 7.969 kB / 475.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.1874, allocations: 4 kB / 475.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.366e-05/0.1874, allocations: 83.59 kB / 475.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1874, allocations: 0 / 475.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003379/0.1878, allocations: 8 kB / 475.8 MB, free: 9.172 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001374/0.1879, allocations: 99.25 kB / 475.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000194/0.1881, allocations: 31.97 kB / 475.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1881, allocations: 0 / 475.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.401e-05/0.1882, allocations: 15.94 kB / 475.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.1885, allocations: 4 kB / 475.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004108/0.189, allocations: 136.7 kB / 476 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.1893, allocations: 0.677 MB / 476.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.422e-05/0.1894, allocations: 4 kB / 476.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.364e-05/0.1894, allocations: 11.38 kB / 476.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1894, allocations: 0 / 476.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of Templates: time 0.003284/0.1927, allocations: 497.8 kB / 477.2 MB, free: 7.652 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