Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.268/1.268, allocations: 221.3 MB / 236 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007798/0.0007799, allocations: 91.8 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1741/0.1741, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.328e-05/2.342e-05, allocations: 4.219 kB / 451.8 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 61.92 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3679/0.4854, allocations: 85.87 MB / 0.5856 GB, free: 3.461 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.4857, allocations: 55.98 kB / 0.5856 GB, free: 3.406 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002377/0.4881, allocations: 0.9957 MB / 0.5866 GB, free: 2.418 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4881, allocations: 8 kB / 0.5866 GB, free: 2.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.4881, allocations: 0 / 0.5866 GB, free: 2.41 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002727/0.4884, allocations: 334.4 kB / 0.5869 GB, free: 2.039 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.4884, allocations: 8.031 kB / 0.5869 GB, free: 2.031 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.456e-05/0.4885, allocations: 7.906 kB / 0.5869 GB, free: 2.023 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.4886, allocations: 167.1 kB / 0.5871 GB, free: 1.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.4887, allocations: 11.94 kB / 0.5871 GB, free: 1.809 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.095e-05/0.4887, allocations: 0 / 0.5871 GB, free: 1.809 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.4888, allocations: 57.62 kB / 0.5871 GB, free: 1.746 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.4888, allocations: 4 kB / 0.5872 GB, free: 1.742 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.4888, allocations: 0 / 0.5872 GB, free: 1.742 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.4888, allocations: 11 kB / 0.5872 GB, free: 1.734 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.966e-05/0.4889, allocations: 12 kB / 0.5872 GB, free: 1.723 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004481/0.4893, allocations: 292.7 kB / 0.5875 GB, free: 1.387 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.464e-05/0.4894, allocations: 30.52 kB / 0.5875 GB, free: 1.348 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.835e-05/0.4894, allocations: 8.922 kB / 0.5875 GB, free: 1.336 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.057e-06/0.4894, allocations: 0 / 0.5875 GB, free: 1.336 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.862e-05/0.4895, allocations: 51.41 kB / 0.5875 GB, free: 1.273 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.4895, allocations: 0 / 0.5875 GB, free: 1.273 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001112/0.4897, allocations: 45.59 kB / 0.5876 GB, free: 1.223 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.4897, allocations: 59.34 kB / 0.5876 GB, free: 1.152 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.717e-05/0.4898, allocations: 108.1 kB / 0.5877 GB, free: 1.039 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.4898, allocations: 33.69 kB / 0.5878 GB, free: 1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.185e-05/0.4898, allocations: 84.14 kB / 0.5879 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.305e-05/0.4899, allocations: 11.84 kB / 0.5879 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-06/0.4899, allocations: 0 / 0.5879 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.759e-05/0.49, allocations: 322.8 kB / 0.5882 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.437e-05/0.49, allocations: 4 kB / 0.5882 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.413e-05/0.49, allocations: 17.72 kB / 0.5882 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.858e-05/0.49, allocations: 12 kB / 0.5882 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.49, allocations: 0 / 0.5882 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.68e-05/0.4901, allocations: 53.53 kB / 0.5883 GB, free: 492 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.4901, allocations: 8 kB / 0.5883 GB, free: 484 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.4901, allocations: 0 / 0.5883 GB, free: 484 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.838e-06/0.4902, allocations: 0 / 0.5883 GB, free: 484 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.975e-05/0.4902, allocations: 4 kB / 0.5883 GB, free: 480 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.4902, allocations: 384 / 0.5883 GB, free: 480 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.951e-05/0.4902, allocations: 8.031 kB / 0.5883 GB, free: 472 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.878e-06/0.4903, allocations: 4 kB / 0.5883 GB, free: 468 kB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.264e-05/0.4903, allocations: 112.9 kB / 0.5884 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.138e-05/0.4903, allocations: 7.844 kB / 0.5884 GB, free: 340 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.693e-05/0.4904, allocations: 12.03 kB / 0.5884 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.4904, allocations: 0 / 0.5884 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.4904, allocations: 192 / 0.5884 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.4904, allocations: 3.938 kB / 0.5884 GB, free: 312 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/0.4907, allocations: 306.5 kB / 0.5887 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.4907, allocations: 0 / 0.5887 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.846e-05/0.4907, allocations: 3.828 kB / 0.5887 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.4908, allocations: 0 / 0.5887 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.4908, allocations: 4 kB / 0.5887 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.4908, allocations: 0 / 0.5887 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4908, allocations: 0.875 kB / 0.5887 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001235/0.4909, allocations: 151.4 kB / 0.5889 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.43e-05/0.491, allocations: 85.11 kB / 0.5889 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.491, allocations: 7.984 kB / 0.5889 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.385e-05/0.491, allocations: 0 / 0.5889 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.588e-05/0.4911, allocations: 4 kB / 0.5889 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-06/0.4911, allocations: 0 / 0.5889 GB, free: 15.67 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.562e-05/0.4911, allocations: 91.27 kB / 0.589 GB, free: 15.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4911, allocations: 0 / 0.589 GB, free: 15.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001967/0.4913, allocations: 16 kB / 0.5891 GB, free: 15.56 MB / 410.7 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 9.368e-05/0.4914, allocations: 95.25 kB / 0.5891 GB, free: 15.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.1e-05/0.4915, allocations: 23.94 kB / 0.5892 GB, free: 15.44 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4915, allocations: 0 / 0.5892 GB, free: 15.44 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.668e-05/0.4915, allocations: 8 kB / 0.5892 GB, free: 15.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001725/0.4917, allocations: 15.94 kB / 0.5892 GB, free: 15.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002063/0.4919, allocations: 83.62 kB / 0.5893 GB, free: 15.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002036/0.4922, allocations: 0.6887 MB / 0.5899 GB, free: 14.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.121e-05/0.4922, allocations: 8 kB / 0.5899 GB, free: 14.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.433e-05/0.4922, allocations: 11.78 kB / 0.59 GB, free: 14.58 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4922, allocations: 224 / 0.59 GB, free: 14.58 MB / 410.7 MB Notification: Performance of Templates: time 0.002185/0.4944, allocations: 480.3 kB / 0.5904 GB, free: 14.12 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches