Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001146/0.001146, allocations: 175.5 kB / 16.76 MB, free: 5.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.684/1.684, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007971/0.0007972, allocations: 96.97 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4214/0.4214, allocations: 43.55 MB / 363.1 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000418/0.0004181, allocations: 12 kB / 432.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1255, allocations: 58.84 MB / 491.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3715/0.4971, allocations: 84.92 MB / 0.5629 GB, free: 1.098 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001708/0.4973, allocations: 63.97 kB / 0.5629 GB, free: 1.035 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002024/0.4993, allocations: 0.9808 MB / 0.5639 GB, free: 64 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4994, allocations: 0 / 0.5639 GB, free: 64 kB / 378.7 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.4994, allocations: 3.594 kB / 0.5639 GB, free: 64 kB / 378.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.0003449/0.4997, allocations: 347 kB / 0.5642 GB, free: 15.68 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.4998, allocations: 8.031 kB / 0.5642 GB, free: 15.67 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.045e-05/0.4998, allocations: 4.938 kB / 0.5642 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/0.5, allocations: 180.2 kB / 0.5644 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.286e-06/0.5, allocations: 384 / 0.5644 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.247e-05/0.5, allocations: 8.375 kB / 0.5644 GB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.5001, allocations: 54.23 kB / 0.5645 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.5002, allocations: 192 / 0.5645 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.5002, allocations: 7.938 kB / 0.5645 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.5002, allocations: 5.016 kB / 0.5645 GB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.919e-05/0.5002, allocations: 15.98 kB / 0.5645 GB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005007/0.5008, allocations: 292.7 kB / 0.5648 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.763e-05/0.5008, allocations: 22.58 kB / 0.5648 GB, free: 14.99 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.924e-05/0.5008, allocations: 8.922 kB / 0.5648 GB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.5009, allocations: 4 kB / 0.5648 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001195/0.501, allocations: 57.2 kB / 0.5649 GB, free: 14.91 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.513e-06/0.501, allocations: 0 / 0.5649 GB, free: 14.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001455/0.5011, allocations: 49.69 kB / 0.5649 GB, free: 14.86 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.5012, allocations: 55.41 kB / 0.565 GB, free: 14.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.563e-05/0.5013, allocations: 124.7 kB / 0.5651 GB, free: 14.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.5013, allocations: 25.7 kB / 0.5651 GB, free: 14.63 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.243e-05/0.5014, allocations: 95.02 kB / 0.5652 GB, free: 14.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.5014, allocations: 7.906 kB / 0.5652 GB, free: 14.53 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.365e-06/0.5014, allocations: 0 / 0.5652 GB, free: 14.53 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.5015, allocations: 318.8 kB / 0.5655 GB, free: 14.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.712e-05/0.5015, allocations: 7.984 kB / 0.5655 GB, free: 14.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.775e-05/0.5016, allocations: 25.66 kB / 0.5655 GB, free: 14.17 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.304e-05/0.5016, allocations: 21.72 kB / 0.5656 GB, free: 14.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5016, allocations: 0 / 0.5656 GB, free: 14.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.707e-05/0.5017, allocations: 61.53 kB / 0.5656 GB, free: 14.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.5017, allocations: 4 kB / 0.5656 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.5017, allocations: 4 kB / 0.5656 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.5018, allocations: 0 / 0.5656 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.154e-05/0.5018, allocations: 4 kB / 0.5656 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.5018, allocations: 4.031 kB / 0.5656 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.89e-05/0.5018, allocations: 3.984 kB / 0.5656 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.5018, allocations: 7.938 kB / 0.5657 GB, free: 14.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: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked 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 8.065e-05/0.5019, allocations: 109.8 kB / 0.5658 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.5019, allocations: 4 kB / 0.5658 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.78e-05/0.502, allocations: 3.906 kB / 0.5658 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.502, allocations: 4 kB / 0.5658 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.502, allocations: 1.031 kB / 0.5658 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.502, allocations: 336 / 0.5658 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003267/0.5023, allocations: 322.4 kB / 0.5661 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.5024, allocations: 0 / 0.5661 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.771e-05/0.5024, allocations: 0 / 0.5661 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.5024, allocations: 0 / 0.5661 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.5024, allocations: 3.5 kB / 0.5661 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.582e-06/0.5024, allocations: 9.109 kB / 0.5661 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.5024, allocations: 0 / 0.5661 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001372/0.5026, allocations: 155.5 kB / 0.5662 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.113e-05/0.5026, allocations: 81.02 kB / 0.5663 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.5026, allocations: 384 / 0.5663 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.769e-05/0.5027, allocations: 11.8 kB / 0.5663 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.037e-05/0.5027, allocations: 0 / 0.5663 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.5028, allocations: 3.984 kB / 0.5663 GB, free: 13.26 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.482e-05/0.5028, allocations: 95.22 kB / 0.5664 GB, free: 13.17 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5028, allocations: 0 / 0.5664 GB, free: 13.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002102/0.503, allocations: 8 kB / 0.5664 GB, free: 13.16 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 0.0001093/0.5032, allocations: 103.3 kB / 0.5665 GB, free: 13.05 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.325e-05/0.5033, allocations: 19.94 kB / 0.5665 GB, free: 13.03 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.5033, allocations: 0 / 0.5665 GB, free: 13.03 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.961e-05/0.5033, allocations: 11.98 kB / 0.5666 GB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.5035, allocations: 8 kB / 0.5666 GB, free: 13.01 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003114/0.5039, allocations: 149.2 kB / 0.5667 GB, free: 12.84 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.5041, allocations: 0.6888 MB / 0.5674 GB, free: 12.13 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.236e-05/0.5042, allocations: 3.984 kB / 0.5674 GB, free: 12.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.7e-05/0.5042, allocations: 11.44 kB / 0.5674 GB, free: 12.11 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5042, allocations: 0 / 0.5674 GB, free: 12.11 MB / 394.7 MB Notification: Performance of Templates: time 0.00225/0.5064, allocations: 462.6 kB / 0.5678 GB, free: 11.67 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches