Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001466/0.001466, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 91.42 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2925/0.2925, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.624e-05/1.632e-05, allocations: 224 / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5362/0.5363, allocations: 58.86 MB / 477.1 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1578/0.6941, allocations: 85.7 MB / 0.5496 GB, free: 13.6 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.6944, allocations: 63.97 kB / 0.5496 GB, free: 13.54 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01801/0.7124, allocations: 2.882 MB / 0.5525 GB, free: 10.66 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.7125, allocations: 0 / 0.5525 GB, free: 10.66 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.328e-05/0.7125, allocations: 4 kB / 0.5525 GB, free: 10.66 MB / 395.1 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.001297/0.7139, allocations: 422.3 kB / 0.5529 GB, free: 10.2 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.07e-05/0.7139, allocations: 8.031 kB / 0.5529 GB, free: 10.2 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.7141, allocations: 7.906 kB / 0.5529 GB, free: 10.19 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006028/0.7147, allocations: 218.8 kB / 0.5531 GB, free: 9.934 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/0.7148, allocations: 4 kB / 0.5531 GB, free: 9.93 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.371e-05/0.7148, allocations: 4 kB / 0.5531 GB, free: 9.926 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002022/0.7151, allocations: 28 kB / 0.5531 GB, free: 9.898 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.7153, allocations: 73.61 kB / 0.5532 GB, free: 9.82 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.7154, allocations: 0 / 0.5532 GB, free: 9.82 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.7154, allocations: 0 / 0.5532 GB, free: 9.82 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.7155, allocations: 3.938 kB / 0.5532 GB, free: 9.816 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.7167, allocations: 345.2 kB / 0.5535 GB, free: 9.441 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002154/0.717, allocations: 58.5 kB / 0.5536 GB, free: 9.375 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.73e-05/0.7171, allocations: 17.02 kB / 0.5536 GB, free: 9.355 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.7171, allocations: 3.938 kB / 0.5536 GB, free: 9.352 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002625/0.7174, allocations: 67.45 kB / 0.5537 GB, free: 9.273 MB / 395.1 MB Notification: Performance of pre-optimization done (n=7): time 3.867e-06/0.7174, allocations: 0 / 0.5537 GB, free: 9.273 MB / 395.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003545/0.7178, allocations: 69.55 kB / 0.5537 GB, free: 9.199 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.7179, allocations: 63.34 kB / 0.5538 GB, free: 9.125 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.7181, allocations: 125.2 kB / 0.5539 GB, free: 8.992 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.541e-05/0.7182, allocations: 25.7 kB / 0.5539 GB, free: 8.961 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.7183, allocations: 162.7 kB / 0.5541 GB, free: 8.797 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.558e-05/0.7184, allocations: 23.88 kB / 0.5541 GB, free: 8.773 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.097e-05/0.7184, allocations: 0 / 0.5541 GB, free: 8.773 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.7186, allocations: 314.8 kB / 0.5544 GB, free: 8.457 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.653e-05/0.7187, allocations: 16 kB / 0.5544 GB, free: 8.441 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.7189, allocations: 33.72 kB / 0.5545 GB, free: 8.402 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.91e-05/0.719, allocations: 15.98 kB / 0.5545 GB, free: 8.387 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.719, allocations: 192 / 0.5545 GB, free: 8.387 MB / 395.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003061/0.7193, allocations: 73.58 kB / 0.5546 GB, free: 8.309 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/0.7193, allocations: 11.98 kB / 0.5546 GB, free: 8.297 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.7194, allocations: 0 / 0.5546 GB, free: 8.297 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.7194, allocations: 3.953 kB / 0.5546 GB, free: 8.293 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.7197, allocations: 27.97 kB / 0.5546 GB, free: 8.266 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.7197, allocations: 3.984 kB / 0.5546 GB, free: 8.262 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002491/0.72, allocations: 19.89 kB / 0.5546 GB, free: 8.242 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.836e-05/0.72, allocations: 4 kB / 0.5546 GB, free: 8.238 MB / 395.1 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 0.0001587/0.7202, allocations: 104.8 kB / 0.5547 GB, free: 8.133 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.535e-05/0.7203, allocations: 7.906 kB / 0.5547 GB, free: 8.125 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.322e-05/0.7203, allocations: 16.62 kB / 0.5547 GB, free: 8.109 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.7204, allocations: 0 / 0.5547 GB, free: 8.109 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.7204, allocations: 3.953 kB / 0.5547 GB, free: 8.105 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.7204, allocations: 0 / 0.5547 GB, free: 8.105 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000723/0.7211, allocations: 327.1 kB / 0.5551 GB, free: 7.742 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.7212, allocations: 0 / 0.5551 GB, free: 7.742 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002197/0.7214, allocations: 11.98 kB / 0.5551 GB, free: 7.73 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.7214, allocations: 4 kB / 0.5551 GB, free: 7.727 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.7215, allocations: 7.984 kB / 0.5551 GB, free: 7.719 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.137e-06/0.7215, allocations: 3.953 kB / 0.5551 GB, free: 7.715 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.728e-06/0.7215, allocations: 4.094 kB / 0.5551 GB, free: 7.711 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004759/0.722, allocations: 199.4 kB / 0.5553 GB, free: 7.5 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.612e-05/0.7221, allocations: 81.02 kB / 0.5554 GB, free: 7.402 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.501e-05/0.7222, allocations: 8.016 kB / 0.5554 GB, free: 7.395 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000356/0.7226, allocations: 24.05 kB / 0.5554 GB, free: 7.371 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.7227, allocations: 15.92 kB / 0.5554 GB, free: 7.355 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.7227, allocations: 4 kB / 0.5554 GB, free: 7.352 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.000135/0.7229, allocations: 99.27 kB / 0.5555 GB, free: 7.254 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.72e-07/0.7229, allocations: 0 / 0.5555 GB, free: 7.254 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0005657/0.7235, allocations: 15.94 kB / 0.5555 GB, free: 7.238 MB / 395.1 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.0002118/0.7237, allocations: 99.25 kB / 0.5556 GB, free: 7.133 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002619/0.724, allocations: 48.03 kB / 0.5557 GB, free: 7.086 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.724, allocations: 192 / 0.5557 GB, free: 7.086 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.7242, allocations: 20 kB / 0.5557 GB, free: 7.066 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.7247, allocations: 19.92 kB / 0.5557 GB, free: 7.047 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006719/0.7254, allocations: 156 kB / 0.5558 GB, free: 6.863 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004421/0.7259, allocations: 0.7119 MB / 0.5565 GB, free: 6.125 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.832e-05/0.726, allocations: 11.44 kB / 0.5565 GB, free: 6.113 MB / 395.1 MB Notification: Performance of SimCode: time 1.383e-06/0.726, allocations: 0 / 0.5565 GB, free: 6.113 MB / 395.1 MB Notification: Performance of Templates: time 0.005553/0.7316, allocations: 1.262 MB / 0.5578 GB, free: 4.855 MB / 395.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches