Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 221.5 MB / 230.7 MB, free: 7.59 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.001064/0.001064, allocations: 91.14 kB / 281.6 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2748/0.2748, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.454e-05/1.456e-05, allocations: 4.219 kB / 444.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1306, allocations: 61.91 MB / 0.4947 GB, free: 1.281 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3805/0.5111, allocations: 86.72 MB / 0.5793 GB, free: 9.848 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001733/0.5114, allocations: 63.97 kB / 0.5794 GB, free: 9.785 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009027/0.5204, allocations: 2.927 MB / 0.5823 GB, free: 6.871 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.5204, allocations: 0 / 0.5823 GB, free: 6.871 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.5205, allocations: 4 kB / 0.5823 GB, free: 6.867 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000695/0.5212, allocations: 423 kB / 0.5827 GB, free: 6.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.5212, allocations: 11.98 kB / 0.5827 GB, free: 6.398 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.205e-05/0.5213, allocations: 11.91 kB / 0.5827 GB, free: 6.387 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/0.5216, allocations: 198.9 kB / 0.5829 GB, free: 6.152 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.5216, allocations: 8 kB / 0.5829 GB, free: 6.145 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.5217, allocations: 12 kB / 0.5829 GB, free: 6.133 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.692e-05/0.5218, allocations: 31.94 kB / 0.5829 GB, free: 6.102 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001331/0.5219, allocations: 75.53 kB / 0.583 GB, free: 6.023 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.5219, allocations: 3.938 kB / 0.583 GB, free: 6.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.522, allocations: 3.938 kB / 0.583 GB, free: 6.016 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.522, allocations: 4 kB / 0.583 GB, free: 6.012 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005649/0.5226, allocations: 349.1 kB / 0.5834 GB, free: 5.633 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.5227, allocations: 46.58 kB / 0.5834 GB, free: 5.578 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.846e-05/0.5227, allocations: 25.02 kB / 0.5834 GB, free: 5.551 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.5227, allocations: 0 / 0.5834 GB, free: 5.551 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001358/0.5229, allocations: 67.44 kB / 0.5835 GB, free: 5.473 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.5229, allocations: 0 / 0.5835 GB, free: 5.473 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002114/0.5231, allocations: 69.53 kB / 0.5836 GB, free: 5.398 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.301e-05/0.5232, allocations: 55.41 kB / 0.5836 GB, free: 5.332 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.5233, allocations: 121.2 kB / 0.5837 GB, free: 5.203 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.5233, allocations: 29.7 kB / 0.5837 GB, free: 5.168 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.147e-05/0.5234, allocations: 104.3 kB / 0.5838 GB, free: 5.059 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.5234, allocations: 19.8 kB / 0.5839 GB, free: 5.039 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-06/0.5234, allocations: 0 / 0.5839 GB, free: 5.039 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.5235, allocations: 326.8 kB / 0.5842 GB, free: 4.711 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.384e-05/0.5235, allocations: 12 kB / 0.5842 GB, free: 4.699 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.521e-05/0.5236, allocations: 29.72 kB / 0.5842 GB, free: 4.664 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.479e-05/0.5236, allocations: 23.92 kB / 0.5842 GB, free: 4.641 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.5236, allocations: 0 / 0.5842 GB, free: 4.641 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000129/0.5238, allocations: 81.53 kB / 0.5843 GB, free: 4.555 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.5238, allocations: 5.094 kB / 0.5843 GB, free: 4.551 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.5238, allocations: 0 / 0.5843 GB, free: 4.551 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.5238, allocations: 4 kB / 0.5843 GB, free: 4.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.5239, allocations: 15.98 kB / 0.5843 GB, free: 4.531 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.524, allocations: 288 / 0.5843 GB, free: 4.531 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.847e-05/0.5241, allocations: 24 kB / 0.5844 GB, free: 4.508 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.5241, allocations: 4 kB / 0.5844 GB, free: 4.504 MB / 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: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.318e-05/0.5242, allocations: 115.1 kB / 0.5845 GB, free: 4.387 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.64e-05/0.5242, allocations: 7.906 kB / 0.5845 GB, free: 4.379 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.72e-05/0.5242, allocations: 12.62 kB / 0.5845 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.5242, allocations: 0 / 0.5845 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.5243, allocations: 3.984 kB / 0.5845 GB, free: 4.359 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.5243, allocations: 7.938 kB / 0.5845 GB, free: 4.352 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000313/0.5246, allocations: 323 kB / 0.5848 GB, free: 3.992 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.5246, allocations: 0 / 0.5848 GB, free: 3.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.6e-05/0.5247, allocations: 15.98 kB / 0.5848 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.5247, allocations: 0 / 0.5848 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.5247, allocations: 0 / 0.5848 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.5247, allocations: 0 / 0.5848 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5247, allocations: 0 / 0.5848 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002178/0.525, allocations: 204 kB / 0.585 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.163e-05/0.525, allocations: 89.03 kB / 0.5851 GB, free: 3.656 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.086e-05/0.525, allocations: 0 / 0.5851 GB, free: 3.656 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.5252, allocations: 19.98 kB / 0.5851 GB, free: 3.637 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.339e-05/0.5253, allocations: 24.03 kB / 0.5852 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.5253, allocations: 4 kB / 0.5852 GB, free: 3.609 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.854e-05/0.5253, allocations: 95.27 kB / 0.5852 GB, free: 3.516 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5253, allocations: 0 / 0.5852 GB, free: 3.516 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002237/0.5256, allocations: 27.84 kB / 0.5853 GB, free: 3.488 MB / 394.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: 5 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * 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 (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.0001233/0.5257, allocations: 95.25 kB / 0.5854 GB, free: 3.387 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001147/0.5258, allocations: 43.94 kB / 0.5854 GB, free: 3.344 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.5258, allocations: 4 kB / 0.5854 GB, free: 3.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.42e-05/0.5259, allocations: 32.28 kB / 0.5854 GB, free: 3.309 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.5261, allocations: 9.484 kB / 0.5855 GB, free: 3.301 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003464/0.5265, allocations: 142 kB / 0.5856 GB, free: 3.137 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.5267, allocations: 0.7002 MB / 0.5863 GB, free: 2.41 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.589e-05/0.5268, allocations: 8.672 kB / 0.5863 GB, free: 2.402 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.045e-05/0.5268, allocations: 11.44 kB / 0.5863 GB, free: 2.391 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5268, allocations: 3.938 kB / 0.5863 GB, free: 2.387 MB / 394.7 MB Notification: Performance of Templates: time 0.003093/0.5299, allocations: 0.9088 MB / 0.5872 GB, free: 1.484 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches