Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001455, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 203.1 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.625/1.625, allocations: 205.1 MB / 222.6 MB, free: 4.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4026/0.4026, allocations: 43.49 MB / 313.5 MB, free: 8.234 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 66.56 kB / 382 MB, free: 8.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1763, allocations: 57.78 MB / 439.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003412/0.1798, allocations: 1.502 MB / 441.3 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009244/0.1807, allocations: 459.8 kB / 441.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.656e-05/0.1808, allocations: 4 kB / 441.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.382e-05/0.1809, allocations: 0 / 441.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.364e-05/0.1809, allocations: 3.938 kB / 441.8 MB, free: 12.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.1812, allocations: 15.97 kB / 441.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.815e-05/0.1813, allocations: 31.86 kB / 441.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.1814, allocations: 11.98 kB / 441.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.1815, allocations: 15.92 kB / 441.8 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.282e-05/0.1816, allocations: 15.92 kB / 441.9 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.417e-05/0.1817, allocations: 8 kB / 441.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.541e-05/0.1817, allocations: 0 / 441.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.16e-05/0.1817, allocations: 7.922 kB / 441.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.891e-05/0.1818, allocations: 15.92 kB / 441.9 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.1819, allocations: 31.91 kB / 441.9 MB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1819, allocations: 0 / 441.9 MB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1819, allocations: 0 / 441.9 MB, free: 12.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1819, allocations: 0 / 441.9 MB, free: 12.5 MB / 382.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.0005628/0.1825, allocations: 351.6 kB / 442.3 MB, free: 12.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.1825, allocations: 12.03 kB / 442.3 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.412e-05/0.1826, allocations: 0.9375 kB / 442.3 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.1827, allocations: 180.2 kB / 442.4 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.1828, allocations: 4.375 kB / 442.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.1828, allocations: 4.375 kB / 442.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.183, allocations: 67.64 kB / 442.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.183, allocations: 0 / 442.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.183, allocations: 0 / 442.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.183, allocations: 4 kB / 442.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.667e-05/0.1831, allocations: 19.98 kB / 442.5 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004999/0.1836, allocations: 256.9 kB / 442.8 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.381e-05/0.1837, allocations: 30.56 kB / 442.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.057e-05/0.1838, allocations: 24.84 kB / 442.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.1838, allocations: 4 kB / 442.9 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.627e-05/0.1839, allocations: 38.44 kB / 442.9 MB, free: 11.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.1839, allocations: 0 / 442.9 MB, free: 11.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002837/0.1842, allocations: 65.67 kB / 443 MB, free: 11.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.846e-05/0.1843, allocations: 77.11 kB / 443 MB, free: 11.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.112e-05/0.1844, allocations: 105.8 kB / 443.1 MB, free: 11.08 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.1844, allocations: 25.83 kB / 443.2 MB, free: 11.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.375e-05/0.1845, allocations: 96.05 kB / 443.3 MB, free: 10.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.1845, allocations: 0 / 443.3 MB, free: 10.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.1845, allocations: 17.72 kB / 443.3 MB, free: 10.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.1846, allocations: 322.8 kB / 443.6 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.055e-05/0.1847, allocations: 8 kB / 443.6 MB, free: 10.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.265e-05/0.1847, allocations: 25.7 kB / 443.6 MB, free: 10.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.388e-05/0.1848, allocations: 32.81 kB / 443.7 MB, free: 10.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1848, allocations: 0 / 443.7 MB, free: 10.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001226/0.185, allocations: 65.58 kB / 443.7 MB, free: 10.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.185, allocations: 4 kB / 443.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.81e-06/0.185, allocations: 0 / 443.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.185, allocations: 0 / 443.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-05/0.1851, allocations: 7.938 kB / 443.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.1851, allocations: 0 / 443.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.571e-05/0.1852, allocations: 11.98 kB / 443.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.1852, allocations: 4 kB / 443.7 MB, free: 10.43 MB / 382.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 0.0001003/0.1853, allocations: 121.7 kB / 443.9 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.1854, allocations: 0 / 443.9 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.57e-05/0.1854, allocations: 11.66 kB / 443.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1854, allocations: 3.984 kB / 443.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1854, allocations: 0 / 443.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1854, allocations: 0 / 443.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.1856, allocations: 165.6 kB / 444 MB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1856, allocations: 0 / 444 MB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.199e-05/0.1856, allocations: 8 kB / 444 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1857, allocations: 0 / 444 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.1857, allocations: 0 / 444 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1857, allocations: 4.312 kB / 444.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.1857, allocations: 4 kB / 444.1 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001798/0.1859, allocations: 155.3 kB / 444.2 MB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.243e-05/0.1859, allocations: 81.05 kB / 444.3 MB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.1859, allocations: 8.031 kB / 444.3 MB, free: 9.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.489e-05/0.186, allocations: 11.98 kB / 444.3 MB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/0.1861, allocations: 7.984 kB / 444.3 MB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-06/0.1861, allocations: 0 / 444.3 MB, free: 9.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001037/0.1862, allocations: 91.25 kB / 444.4 MB, free: 9.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1862, allocations: 7.938 kB / 444.4 MB, free: 9.672 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002099/0.1864, allocations: 4 kB / 444.4 MB, free: 9.668 MB / 382.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.926e-05/0.1865, allocations: 99.23 kB / 444.5 MB, free: 9.562 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001574/0.1867, allocations: 23.98 kB / 444.5 MB, free: 9.539 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1867, allocations: 0 / 444.5 MB, free: 9.539 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.923e-05/0.1868, allocations: 19.92 kB / 444.6 MB, free: 9.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.187, allocations: 7.938 kB / 444.6 MB, free: 9.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003477/0.1874, allocations: 136.4 kB / 444.7 MB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.1877, allocations: 0.6809 MB / 445.4 MB, free: 8.645 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.549e-05/0.1877, allocations: 3.906 kB / 445.4 MB, free: 8.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.1877, allocations: 7.438 kB / 445.4 MB, free: 8.637 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1877, allocations: 0 / 445.4 MB, free: 8.637 MB / 382.1 MB Notification: Performance of Templates: time 0.00324/0.191, allocations: 0.497 MB / 445.9 MB, free: 8.141 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches