Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00187/0.00188, allocations: 116 kB / 17.08 MB, free: 6.016 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.002446/0.002446, allocations: 197.3 kB / 18.01 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.452/2.452, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.3793/0.3793, allocations: 43.52 MB / 314.8 MB, free: 472 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.002659/0.002659, allocations: 63.91 kB / 442.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.1678, allocations: 57.78 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.005224/0.1731, allocations: 1.629 MB / 0.4901 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00199/0.1751, allocations: 0.593 MB / 0.4907 GB, free: 9.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.1753, allocations: 8 kB / 0.4907 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001641/0.1756, allocations: 15.86 kB / 0.4907 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.102e-05/0.1757, allocations: 7.875 kB / 0.4907 GB, free: 9.559 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000584/0.1763, allocations: 99.73 kB / 0.4908 GB, free: 9.461 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002868/0.1766, allocations: 111.7 kB / 0.4909 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001818/0.1768, allocations: 39.91 kB / 0.491 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.1769, allocations: 47.84 kB / 0.491 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/0.1771, allocations: 35.83 kB / 0.491 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.463e-05/0.1771, allocations: 8 kB / 0.491 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.031e-05/0.1772, allocations: 8 kB / 0.4911 GB, free: 9.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.184e-05/0.1772, allocations: 27.91 kB / 0.4911 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.875e-05/0.1773, allocations: 39.73 kB / 0.4911 GB, free: 9.148 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.1776, allocations: 91.62 kB / 0.4912 GB, free: 9.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1776, allocations: 0 / 0.4912 GB, free: 9.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1776, allocations: 0 / 0.4912 GB, free: 9.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.1776, allocations: 0 / 0.4912 GB, free: 9.059 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001025/0.1787, allocations: 423 kB / 0.4916 GB, free: 8.598 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/0.1787, allocations: 11.89 kB / 0.4916 GB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.1788, allocations: 8.844 kB / 0.4916 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004436/0.1793, allocations: 196.2 kB / 0.4918 GB, free: 8.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.78e-05/0.1793, allocations: 12.38 kB / 0.4918 GB, free: 8.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/0.1794, allocations: 12.31 kB / 0.4918 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004891/0.1799, allocations: 105.9 kB / 0.4919 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.1799, allocations: 0 / 0.4919 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.18, allocations: 0 / 0.4919 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.18, allocations: 0 / 0.4919 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003029/0.1803, allocations: 55.97 kB / 0.492 GB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.1814, allocations: 388.4 kB / 0.4924 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005854/0.182, allocations: 98.52 kB / 0.4925 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002063/0.1822, allocations: 36.92 kB / 0.4925 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.1823, allocations: 11.86 kB / 0.4925 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004114/0.1827, allocations: 99.3 kB / 0.4926 GB, free: 7.465 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 2.806e-06/0.1827, allocations: 0 / 0.4926 GB, free: 7.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0008234/0.1836, allocations: 149.5 kB / 0.4927 GB, free: 7.312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.65e-05/0.1837, allocations: 55.34 kB / 0.4928 GB, free: 7.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.1839, allocations: 149.7 kB / 0.4929 GB, free: 7.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.1839, allocations: 29.7 kB / 0.493 GB, free: 7.055 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.124e-05/0.184, allocations: 100.1 kB / 0.4931 GB, free: 6.953 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.244e-05/0.1841, allocations: 19.8 kB / 0.4931 GB, free: 6.934 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.364e-05/0.1842, allocations: 29.7 kB / 0.4931 GB, free: 6.898 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.1844, allocations: 330.8 kB / 0.4934 GB, free: 6.566 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002189/0.1846, allocations: 31.98 kB / 0.4935 GB, free: 6.535 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002279/0.1848, allocations: 49.69 kB / 0.4935 GB, free: 6.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004157/0.1853, allocations: 77.67 kB / 0.4936 GB, free: 6.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1853, allocations: 3.938 kB / 0.4936 GB, free: 6.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005669/0.1859, allocations: 121.5 kB / 0.4937 GB, free: 6.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.1859, allocations: 7.938 kB / 0.4937 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1859, allocations: 0 / 0.4937 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.186, allocations: 4 kB / 0.4937 GB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.1862, allocations: 15.98 kB / 0.4937 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.1862, allocations: 288 / 0.4937 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.1864, allocations: 11.98 kB / 0.4937 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.1864, allocations: 8 kB / 0.4937 GB, free: 6.223 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001644/0.1866, allocations: 125.7 kB / 0.4939 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.298e-05/0.1867, allocations: 15.84 kB / 0.4939 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.669e-05/0.1868, allocations: 16.7 kB / 0.4939 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1868, allocations: 3.938 kB / 0.4939 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.1868, allocations: 0 / 0.4939 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1868, allocations: 0 / 0.4939 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009513/0.1878, allocations: 398.4 kB / 0.4943 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1878, allocations: 0 / 0.4943 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.188, allocations: 15.98 kB / 0.4943 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.188, allocations: 0 / 0.4943 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.188, allocations: 0 / 0.4943 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.188, allocations: 7.875 kB / 0.4943 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.188, allocations: 0 / 0.4943 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008218/0.1889, allocations: 251.8 kB / 0.4945 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.686e-05/0.189, allocations: 88.98 kB / 0.4946 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.189, allocations: 64 / 0.4946 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002891/0.1893, allocations: 27.97 kB / 0.4947 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.856e-05/0.1894, allocations: 7.984 kB / 0.4947 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.1895, allocations: 4 kB / 0.4947 GB, free: 5.176 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001402/0.1896, allocations: 112 kB / 0.4948 GB, free: 5.066 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.1896, allocations: 4 kB / 0.4948 GB, free: 5.062 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004472/0.1901, allocations: 12 kB / 0.4948 GB, free: 5.051 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001763/0.1903, allocations: 99.25 kB / 0.4949 GB, free: 4.945 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005708/0.1909, allocations: 87.81 kB / 0.495 GB, free: 4.859 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.1909, allocations: 0 / 0.495 GB, free: 4.859 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.1912, allocations: 51.89 kB / 0.495 GB, free: 4.809 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005792/0.1918, allocations: 26.14 kB / 0.495 GB, free: 4.789 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009669/0.1928, allocations: 248.7 kB / 0.4953 GB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004126/0.1932, allocations: 0.6924 MB / 0.496 GB, free: 3.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.737e-05/0.1933, allocations: 19.44 kB / 0.496 GB, free: 3.777 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.1933, allocations: 0 / 0.496 GB, free: 3.777 MB / 382.1 MB Notification: Performance of Templates: time 0.005212/0.1986, allocations: 1.375 MB / 0.4973 GB, free: 2.398 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches