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.001206/0.001206, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.264/1.264, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008051/0.0008052, allocations: 90.73 kB / 292.2 MB, free: 10.91 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.2989/0.2989, allocations: 44.22 MB / 387.5 MB, free: 38.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002771, allocations: 8 kB / 459.9 MB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2828, allocations: 61.89 MB / 0.5095 GB, free: 38.12 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.3904, allocations: 85.95 MB / 0.5935 GB, free: 9.188 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/0.3907, allocations: 63.97 kB / 0.5935 GB, free: 9.125 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002427/0.3931, allocations: 0.9935 MB / 0.5945 GB, free: 8.129 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3931, allocations: 4 kB / 0.5945 GB, free: 8.125 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.3932, allocations: 8 kB / 0.5945 GB, free: 8.117 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003462/0.3935, allocations: 335.2 kB / 0.5948 GB, free: 7.742 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.3936, allocations: 8.031 kB / 0.5949 GB, free: 7.734 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.223e-05/0.3936, allocations: 7.906 kB / 0.5949 GB, free: 7.727 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.3938, allocations: 175 kB / 0.595 GB, free: 7.516 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.3938, allocations: 4 kB / 0.595 GB, free: 7.512 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.3938, allocations: 7.906 kB / 0.595 GB, free: 7.504 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001256/0.3939, allocations: 57.86 kB / 0.5951 GB, free: 7.441 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3939, allocations: 0 / 0.5951 GB, free: 7.441 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.394, allocations: 3.938 kB / 0.5951 GB, free: 7.438 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.394, allocations: 7.984 kB / 0.5951 GB, free: 7.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.657e-05/0.394, allocations: 11.98 kB / 0.5951 GB, free: 7.418 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000522/0.3946, allocations: 288.8 kB / 0.5954 GB, free: 7.086 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.497e-05/0.3946, allocations: 30.56 kB / 0.5954 GB, free: 7.047 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.918e-06/0.3946, allocations: 0 / 0.5954 GB, free: 7.047 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001277/0.3948, allocations: 55.31 kB / 0.5955 GB, free: 6.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.473e-06/0.3948, allocations: 0 / 0.5955 GB, free: 6.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001613/0.395, allocations: 53.69 kB / 0.5955 GB, free: 6.922 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/0.395, allocations: 51.41 kB / 0.5956 GB, free: 6.859 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.65e-05/0.3951, allocations: 109.2 kB / 0.5957 GB, free: 6.742 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.3951, allocations: 25.7 kB / 0.5957 GB, free: 6.711 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.03e-05/0.3952, allocations: 95.98 kB / 0.5958 GB, free: 6.613 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.782e-05/0.3952, allocations: 7.906 kB / 0.5958 GB, free: 6.605 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.3952, allocations: 0 / 0.5958 GB, free: 6.605 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3953, allocations: 318.8 kB / 0.5961 GB, free: 6.285 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.915e-05/0.3953, allocations: 8 kB / 0.5961 GB, free: 6.277 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.549e-05/0.3954, allocations: 22.03 kB / 0.5961 GB, free: 6.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.118e-05/0.3954, allocations: 8 kB / 0.5961 GB, free: 6.242 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3954, allocations: 0 / 0.5961 GB, free: 6.242 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.107e-05/0.3955, allocations: 53.69 kB / 0.5962 GB, free: 6.184 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.3955, allocations: 10.12 kB / 0.5962 GB, free: 6.176 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3955, allocations: 11.94 kB / 0.5962 GB, free: 6.164 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.3955, allocations: 0 / 0.5962 GB, free: 6.164 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.314e-05/0.3956, allocations: 7.984 kB / 0.5962 GB, free: 6.156 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3956, allocations: 0 / 0.5962 GB, free: 6.156 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.124e-05/0.3956, allocations: 4 kB / 0.5962 GB, free: 6.152 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-06/0.3956, allocations: 4.031 kB / 0.5962 GB, free: 6.148 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: 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 7.601e-05/0.3957, allocations: 118.3 kB / 0.5963 GB, free: 6.023 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.102e-05/0.3957, allocations: 3.906 kB / 0.5963 GB, free: 6.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.463e-05/0.3958, allocations: 7.906 kB / 0.5964 GB, free: 6.012 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3958, allocations: 0 / 0.5964 GB, free: 6.012 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3958, allocations: 0 / 0.5964 GB, free: 6.012 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3958, allocations: 3.984 kB / 0.5964 GB, free: 6.008 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.3961, allocations: 298.8 kB / 0.5966 GB, free: 5.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3961, allocations: 7.938 kB / 0.5967 GB, free: 5.652 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.951e-05/0.3961, allocations: 0 / 0.5967 GB, free: 5.652 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.3961, allocations: 3.984 kB / 0.5967 GB, free: 5.648 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.3961, allocations: 8.047 kB / 0.5967 GB, free: 5.641 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3961, allocations: 0 / 0.5967 GB, free: 5.641 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3962, allocations: 3.984 kB / 0.5967 GB, free: 5.637 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001358/0.3963, allocations: 151.4 kB / 0.5968 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.188e-05/0.3963, allocations: 81.05 kB / 0.5969 GB, free: 5.375 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.3964, allocations: 4.062 kB / 0.5969 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.578e-05/0.3964, allocations: 4.031 kB / 0.5969 GB, free: 5.367 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.366e-05/0.3964, allocations: 3.984 kB / 0.5969 GB, free: 5.363 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/0.3965, allocations: 4 kB / 0.5969 GB, free: 5.359 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.215e-05/0.3965, allocations: 91.27 kB / 0.597 GB, free: 5.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3965, allocations: 0 / 0.597 GB, free: 5.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002171/0.3967, allocations: 8 kB / 0.597 GB, free: 5.262 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 () * 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.0001152/0.3969, allocations: 99.25 kB / 0.5971 GB, free: 5.152 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.708e-05/0.3969, allocations: 19.98 kB / 0.5971 GB, free: 5.133 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.397, allocations: 0 / 0.5971 GB, free: 5.133 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.081e-05/0.397, allocations: 11.94 kB / 0.5971 GB, free: 5.121 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001841/0.3972, allocations: 17.55 kB / 0.5971 GB, free: 5.105 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003096/0.3975, allocations: 142.6 kB / 0.5973 GB, free: 4.941 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002128/0.3977, allocations: 0.6965 MB / 0.598 GB, free: 4.219 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.189e-05/0.3978, allocations: 16.14 kB / 0.598 GB, free: 4.203 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.833e-05/0.3978, allocations: 11.38 kB / 0.598 GB, free: 4.191 MB / 410.7 MB Notification: Performance of SimCode: time 3.41e-07/0.3978, allocations: 0 / 0.598 GB, free: 4.191 MB / 410.7 MB Notification: Performance of Templates: time 0.002272/0.4001, allocations: 453.2 kB / 0.5984 GB, free: 3.75 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