Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00095/0.0009502, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 225.6 MB / 234.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008979/0.0008979, allocations: 99.14 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1772/0.1772, allocations: 45.14 MB / 383.7 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.707e-05/1.701e-05, allocations: 4 kB / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1146, allocations: 63.25 MB / 0.5044 GB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3626/0.4773, allocations: 87.77 MB / 0.5901 GB, free: 14.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000156/0.4775, allocations: 62.69 kB / 0.5901 GB, free: 14.8 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008388/0.4859, allocations: 2.993 MB / 0.5931 GB, free: 12.26 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.486, allocations: 0 / 0.5931 GB, free: 12.26 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.486, allocations: 0 / 0.5931 GB, free: 12.26 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.0005604/0.4865, allocations: 427.9 kB / 0.5935 GB, free: 11.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.4866, allocations: 8.031 kB / 0.5935 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.329e-05/0.4866, allocations: 11.91 kB / 0.5935 GB, free: 11.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.4869, allocations: 211.8 kB / 0.5937 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.4869, allocations: 4 kB / 0.5937 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.071e-05/0.487, allocations: 4 kB / 0.5937 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.237e-05/0.487, allocations: 31 kB / 0.5937 GB, free: 11.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.4872, allocations: 70.48 kB / 0.5938 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.4872, allocations: 0 / 0.5938 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.4872, allocations: 4 kB / 0.5938 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-06/0.4872, allocations: 0 / 0.5938 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005015/0.4877, allocations: 347 kB / 0.5941 GB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.762e-05/0.4878, allocations: 53 kB / 0.5942 GB, free: 11.05 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.975e-05/0.4879, allocations: 16.33 kB / 0.5942 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.4879, allocations: 0 / 0.5942 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001181/0.488, allocations: 81.88 kB / 0.5943 GB, free: 10.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.488, allocations: 0 / 0.5943 GB, free: 10.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001531/0.4882, allocations: 71.73 kB / 0.5943 GB, free: 10.89 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.4882, allocations: 51.41 kB / 0.5944 GB, free: 10.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.437e-05/0.4883, allocations: 124.6 kB / 0.5945 GB, free: 10.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.4883, allocations: 29.7 kB / 0.5945 GB, free: 10.67 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.071e-05/0.4884, allocations: 99.52 kB / 0.5946 GB, free: 10.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/0.4884, allocations: 15.5 kB / 0.5946 GB, free: 10.56 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-06/0.4884, allocations: 4 kB / 0.5946 GB, free: 10.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.4886, allocations: 317.8 kB / 0.5949 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.308e-05/0.4886, allocations: 18.94 kB / 0.595 GB, free: 10.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.124e-05/0.4886, allocations: 36.16 kB / 0.595 GB, free: 10.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.602e-05/0.4887, allocations: 11.55 kB / 0.595 GB, free: 10.19 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.4887, allocations: 0 / 0.595 GB, free: 10.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001122/0.4888, allocations: 72.86 kB / 0.5951 GB, free: 10.12 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.4888, allocations: 13.58 kB / 0.5951 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.4888, allocations: 4 kB / 0.5951 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.4889, allocations: 3.953 kB / 0.5951 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.886e-05/0.489, allocations: 19.38 kB / 0.5951 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.489, allocations: 7.984 kB / 0.5951 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.873e-05/0.4891, allocations: 15.98 kB / 0.5951 GB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-06/0.4891, allocations: 4 kB / 0.5951 GB, free: 10.05 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 6.522e-05/0.4892, allocations: 113.1 kB / 0.5953 GB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.299e-05/0.4892, allocations: 7.906 kB / 0.5953 GB, free: 9.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.256e-05/0.4892, allocations: 8.5 kB / 0.5953 GB, free: 9.922 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.4892, allocations: 11.92 kB / 0.5953 GB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4892, allocations: 3.953 kB / 0.5953 GB, free: 9.906 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.4892, allocations: 0 / 0.5953 GB, free: 9.906 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000276/0.4895, allocations: 333.8 kB / 0.5956 GB, free: 9.562 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.4895, allocations: 0.875 kB / 0.5956 GB, free: 9.562 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.901e-05/0.4896, allocations: 23.42 kB / 0.5956 GB, free: 9.543 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.4896, allocations: 0 / 0.5956 GB, free: 9.543 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.4897, allocations: 0 / 0.5956 GB, free: 9.543 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.4897, allocations: 7.953 kB / 0.5956 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4897, allocations: 4 kB / 0.5956 GB, free: 9.531 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001827/0.4899, allocations: 191.4 kB / 0.5958 GB, free: 9.348 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.608e-05/0.4899, allocations: 77.11 kB / 0.5959 GB, free: 9.254 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.4899, allocations: 3.984 kB / 0.5959 GB, free: 9.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.4901, allocations: 24.02 kB / 0.5959 GB, free: 9.227 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.274e-05/0.4901, allocations: 19.11 kB / 0.5959 GB, free: 9.211 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.4901, allocations: 4 kB / 0.5959 GB, free: 9.207 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.982e-05/0.4902, allocations: 104.4 kB / 0.596 GB, free: 9.113 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4902, allocations: 0 / 0.596 GB, free: 9.113 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002147/0.4904, allocations: 15.91 kB / 0.5961 GB, free: 9.098 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.000107/0.4905, allocations: 95.19 kB / 0.5961 GB, free: 8.996 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001097/0.4907, allocations: 46.56 kB / 0.5962 GB, free: 8.965 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4907, allocations: 0 / 0.5962 GB, free: 8.965 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.506e-05/0.4907, allocations: 26.44 kB / 0.5962 GB, free: 8.945 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002085/0.4909, allocations: 19.67 kB / 0.5962 GB, free: 8.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002953/0.4912, allocations: 133.5 kB / 0.5964 GB, free: 8.789 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.4915, allocations: 0.7041 MB / 0.5971 GB, free: 8.059 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.165e-05/0.4916, allocations: 4.672 kB / 0.5971 GB, free: 8.055 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.644e-05/0.4916, allocations: 15.44 kB / 0.5971 GB, free: 8.039 MB / 394.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4916, allocations: 0 / 0.5971 GB, free: 8.039 MB / 394.7 MB Notification: Performance of Templates: time 0.002691/0.4943, allocations: 0.8912 MB / 0.5979 GB, free: 7.164 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches