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.001211/0.001211, allocations: 105 kB / 16.4 MB, free: 6.461 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.001227/0.001227, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.583/1.583, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2457/0.2457, allocations: 43.53 MB / 314.1 MB, free: 440 kB / 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.001389/0.001389, allocations: 65.47 kB / 441.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1766/0.178, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003345/0.1814, allocations: 1.438 MB / 0.4893 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000771/0.1822, allocations: 459.8 kB / 0.4897 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.638e-05/0.1822, allocations: 0 / 0.4897 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.925e-05/0.1823, allocations: 7.938 kB / 0.4897 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.7e-05/0.1824, allocations: 7.922 kB / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002035/0.1826, allocations: 15.98 kB / 0.4897 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.1827, allocations: 39.8 kB / 0.4898 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.1828, allocations: 7.984 kB / 0.4898 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.972e-05/0.1829, allocations: 15.98 kB / 0.4898 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.82e-05/0.183, allocations: 15.92 kB / 0.4898 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.928e-05/0.183, allocations: 4 kB / 0.4898 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.154e-05/0.183, allocations: 4 kB / 0.4898 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.08e-05/0.183, allocations: 15.92 kB / 0.4898 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.43e-05/0.1831, allocations: 11.94 kB / 0.4899 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.1832, allocations: 35.88 kB / 0.4899 GB, free: 9.715 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1832, allocations: 0 / 0.4899 GB, free: 9.715 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1832, allocations: 0 / 0.4899 GB, free: 9.715 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1832, allocations: 0 / 0.4899 GB, free: 9.715 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.0007666/0.184, allocations: 351.3 kB / 0.4902 GB, free: 9.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.184, allocations: 11.89 kB / 0.4902 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.028e-05/0.1841, allocations: 12.89 kB / 0.4902 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/0.1842, allocations: 172.3 kB / 0.4904 GB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.1843, allocations: 384 / 0.4904 GB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.1843, allocations: 384 / 0.4904 GB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.1844, allocations: 63.7 kB / 0.4905 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1845, allocations: 3.984 kB / 0.4905 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.1845, allocations: 4 kB / 0.4905 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.1845, allocations: 0 / 0.4905 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.538e-05/0.1846, allocations: 23.98 kB / 0.4905 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007296/0.1853, allocations: 264.8 kB / 0.4908 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.076e-05/0.1854, allocations: 34.56 kB / 0.4908 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.806e-05/0.1855, allocations: 12.92 kB / 0.4908 GB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.1855, allocations: 4 kB / 0.4908 GB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.1855, allocations: 34.56 kB / 0.4908 GB, free: 8.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.1856, allocations: 0 / 0.4908 GB, free: 8.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002602/0.1858, allocations: 69.56 kB / 0.4909 GB, free: 8.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.626e-05/0.1859, allocations: 77.11 kB / 0.491 GB, free: 8.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.001e-05/0.186, allocations: 113.8 kB / 0.4911 GB, free: 8.285 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.59e-05/0.1861, allocations: 25.7 kB / 0.4911 GB, free: 8.254 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.112e-05/0.1861, allocations: 88.25 kB / 0.4912 GB, free: 8.164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.1862, allocations: 11.95 kB / 0.4912 GB, free: 8.152 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.1862, allocations: 17.72 kB / 0.4912 GB, free: 8.129 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1864, allocations: 310.8 kB / 0.4915 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.319e-05/0.1864, allocations: 15.98 kB / 0.4915 GB, free: 7.801 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.1866, allocations: 25.7 kB / 0.4916 GB, free: 7.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.758e-05/0.1867, allocations: 28.78 kB / 0.4916 GB, free: 7.738 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1867, allocations: 4.031 kB / 0.4916 GB, free: 7.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001273/0.1868, allocations: 57.62 kB / 0.4916 GB, free: 7.672 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.1868, allocations: 8 kB / 0.4917 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.1869, allocations: 3.984 kB / 0.4917 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.1869, allocations: 0 / 0.4917 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.306e-05/0.187, allocations: 4 kB / 0.4917 GB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.187, allocations: 0 / 0.4917 GB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.501e-05/0.187, allocations: 7.984 kB / 0.4917 GB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.1871, allocations: 4 kB / 0.4917 GB, free: 7.645 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.0001833/0.1872, allocations: 117.7 kB / 0.4918 GB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.795e-05/0.1873, allocations: 7.953 kB / 0.4918 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.001e-05/0.1873, allocations: 7.531 kB / 0.4918 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1873, allocations: 0 / 0.4918 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1873, allocations: 0 / 0.4918 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.1873, allocations: 4 kB / 0.4918 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002511/0.1876, allocations: 169.6 kB / 0.492 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1876, allocations: 0 / 0.492 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.095e-05/0.1876, allocations: 11.98 kB / 0.492 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.1877, allocations: 4 kB / 0.492 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.1877, allocations: 3.938 kB / 0.492 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.083e-06/0.1877, allocations: 3.938 kB / 0.492 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1877, allocations: 0 / 0.492 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/0.1879, allocations: 151.5 kB / 0.4921 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-05/0.1879, allocations: 85 kB / 0.4922 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.188, allocations: 0 / 0.4922 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.845e-05/0.1881, allocations: 12.02 kB / 0.4922 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.089e-05/0.1881, allocations: 12.12 kB / 0.4922 GB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.1881, allocations: 3.984 kB / 0.4922 GB, free: 6.965 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.416e-05/0.1882, allocations: 87.28 kB / 0.4923 GB, free: 6.879 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1882, allocations: 0 / 0.4923 GB, free: 6.879 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002372/0.1884, allocations: 8 kB / 0.4923 GB, free: 6.871 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 0.0001104/0.1886, allocations: 95.23 kB / 0.4924 GB, free: 6.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001839/0.1888, allocations: 31.92 kB / 0.4925 GB, free: 6.738 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1888, allocations: 3.938 kB / 0.4925 GB, free: 6.734 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.914e-05/0.1888, allocations: 12 kB / 0.4925 GB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.1891, allocations: 3.938 kB / 0.4925 GB, free: 6.719 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004314/0.1895, allocations: 134.4 kB / 0.4926 GB, free: 6.562 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/0.1899, allocations: 0.6768 MB / 0.4933 GB, free: 5.859 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.411e-05/0.1899, allocations: 8.062 kB / 0.4933 GB, free: 5.852 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.139e-05/0.19, allocations: 7.438 kB / 0.4933 GB, free: 5.844 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.19, allocations: 0 / 0.4933 GB, free: 5.844 MB / 382.1 MB Notification: Performance of Templates: time 0.002976/0.193, allocations: 0.5943 MB / 0.4939 GB, free: 5.254 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches