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.001056/0.001056, 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.254/1.254, allocations: 221.4 MB / 236 MB, free: 2.938 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.0008644/0.0008646, allocations: 91.8 kB / 287 MB, free: 236 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.2233/0.2233, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.575e-05/3.578e-05, allocations: 224 / 451.8 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1397, allocations: 61.92 MB / 0.5017 GB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3953/0.535, allocations: 87.38 MB / 0.587 GB, free: 1.965 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.5352, allocations: 59.97 kB / 0.5871 GB, free: 1.906 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008993/0.5442, allocations: 2.941 MB / 0.59 GB, free: 14.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5443, allocations: 4 kB / 0.59 GB, free: 14.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.5443, allocations: 4 kB / 0.59 GB, free: 14.98 MB / 410.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.0006426/0.545, allocations: 423.1 kB / 0.5904 GB, free: 14.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.545, allocations: 8.031 kB / 0.5904 GB, free: 14.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.069e-05/0.5451, allocations: 15.91 kB / 0.5904 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.5454, allocations: 199.5 kB / 0.5906 GB, free: 14.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.5454, allocations: 4 kB / 0.5906 GB, free: 14.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.5455, allocations: 8 kB / 0.5906 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.5457, allocations: 90.2 kB / 0.5907 GB, free: 14.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.5457, allocations: 4 kB / 0.5907 GB, free: 14.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.5457, allocations: 7.922 kB / 0.5907 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.5457, allocations: 0 / 0.5907 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.64e-05/0.5458, allocations: 39.98 kB / 0.5907 GB, free: 14.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006646/0.5465, allocations: 380.5 kB / 0.5911 GB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.5466, allocations: 54.56 kB / 0.5911 GB, free: 13.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.676e-05/0.5466, allocations: 17.02 kB / 0.5912 GB, free: 13.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.5467, allocations: 0 / 0.5912 GB, free: 13.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001528/0.5468, allocations: 84 kB / 0.5912 GB, free: 13.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.5468, allocations: 0 / 0.5912 GB, free: 13.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001944/0.547, allocations: 69.59 kB / 0.5913 GB, free: 13.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.5471, allocations: 51.41 kB / 0.5914 GB, free: 13.37 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.5472, allocations: 144.5 kB / 0.5915 GB, free: 13.22 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.5473, allocations: 25.7 kB / 0.5915 GB, free: 13.19 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.492e-05/0.5473, allocations: 104.4 kB / 0.5916 GB, free: 13.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.691e-05/0.5474, allocations: 19.73 kB / 0.5916 GB, free: 13.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-06/0.5474, allocations: 8 kB / 0.5916 GB, free: 13.06 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.5475, allocations: 322.8 kB / 0.5919 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.935e-05/0.5476, allocations: 20 kB / 0.592 GB, free: 12.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.988e-05/0.5476, allocations: 37.59 kB / 0.592 GB, free: 12.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.61e-05/0.5477, allocations: 15.98 kB / 0.592 GB, free: 12.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.5477, allocations: 0 / 0.592 GB, free: 12.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00013/0.5478, allocations: 85.53 kB / 0.5921 GB, free: 12.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.5478, allocations: 13.44 kB / 0.5921 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.5479, allocations: 80 / 0.5921 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.5479, allocations: 4 kB / 0.5921 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.548, allocations: 15.98 kB / 0.5921 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.548, allocations: 11.92 kB / 0.5921 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.689e-05/0.5481, allocations: 19.89 kB / 0.5922 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.5481, allocations: 15.95 kB / 0.5922 GB, free: 12.49 MB / 410.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.07e-05/0.5482, allocations: 103.4 kB / 0.5923 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.628e-05/0.5482, allocations: 7.906 kB / 0.5923 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.123e-05/0.5483, allocations: 20.61 kB / 0.5923 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.5483, allocations: 0 / 0.5923 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.5483, allocations: 0 / 0.5923 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.5483, allocations: 7.938 kB / 0.5923 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003645/0.5487, allocations: 358.4 kB / 0.5927 GB, free: 11.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.5487, allocations: 4 kB / 0.5927 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.574e-05/0.5488, allocations: 15.98 kB / 0.5927 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.5488, allocations: 0 / 0.5927 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.5488, allocations: 0 / 0.5927 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.5488, allocations: 4 kB / 0.5927 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.5488, allocations: 288 / 0.5927 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002365/0.5491, allocations: 199.4 kB / 0.5929 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.06e-05/0.5491, allocations: 88.94 kB / 0.5929 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.5492, allocations: 7.969 kB / 0.593 GB, free: 11.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.5493, allocations: 19.98 kB / 0.593 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.63e-05/0.5494, allocations: 15.97 kB / 0.593 GB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.5494, allocations: 4 kB / 0.593 GB, free: 11.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.148e-05/0.5495, allocations: 119.2 kB / 0.5931 GB, free: 11.44 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5495, allocations: 0 / 0.5931 GB, free: 11.44 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002173/0.5497, allocations: 23.94 kB / 0.5931 GB, free: 11.41 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: 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.0001415/0.5499, allocations: 95.25 kB / 0.5932 GB, free: 11.31 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001431/0.55, allocations: 55.92 kB / 0.5933 GB, free: 11.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.55, allocations: 0 / 0.5933 GB, free: 11.26 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.791e-05/0.5501, allocations: 24 kB / 0.5933 GB, free: 11.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.5503, allocations: 8 kB / 0.5933 GB, free: 11.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003828/0.5507, allocations: 159.5 kB / 0.5935 GB, free: 11.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/0.5511, allocations: 0.7042 MB / 0.5941 GB, free: 10.31 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.311e-05/0.5511, allocations: 12.48 kB / 0.5942 GB, free: 10.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.511e-05/0.5512, allocations: 11.44 kB / 0.5942 GB, free: 10.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.994e-06/0.5512, allocations: 4 kB / 0.5942 GB, free: 10.29 MB / 410.7 MB Notification: Performance of Templates: time 0.003417/0.5546, allocations: 1.023 MB / 0.5952 GB, free: 9.273 MB / 410.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