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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001818/0.001818, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002327/0.002327, allocations: 211.4 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 230.5 MB / 258.1 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2791/0.2791, allocations: 46.95 MB / 361.5 MB, free: 3.922 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002809/0.002809, allocations: 79.86 kB / 0.4974 GB, free: 7.051 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3592, allocations: 66.09 MB / 0.5619 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003095/0.3623, allocations: 1.619 MB / 0.5635 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.3635, allocations: 0.5542 MB / 0.564 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.453e-05/0.3635, allocations: 4 kB / 0.564 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.3637, allocations: 15.8 kB / 0.564 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.764e-05/0.3637, allocations: 11.88 kB / 0.5641 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003802/0.3641, allocations: 87.81 kB / 0.5641 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.3643, allocations: 111.7 kB / 0.5642 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.3644, allocations: 26.64 kB / 0.5643 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.655e-05/0.3645, allocations: 51.89 kB / 0.5643 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.187e-05/0.3646, allocations: 35.78 kB / 0.5644 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.3646, allocations: 8 kB / 0.5644 GB, free: 1.434 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.077e-05/0.3646, allocations: 8 kB / 0.5644 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.64e-05/0.3647, allocations: 23.92 kB / 0.5644 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.268e-05/0.3647, allocations: 31.8 kB / 0.5644 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001598/0.3649, allocations: 91.28 kB / 0.5645 GB, free: 1.285 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3649, allocations: 0 / 0.5645 GB, free: 1.285 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3649, allocations: 0 / 0.5645 GB, free: 1.285 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.3649, allocations: 0 / 0.5645 GB, free: 1.285 MB / 398.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.0006949/0.3656, allocations: 354.8 kB / 0.5649 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3656, allocations: 12.03 kB / 0.5649 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.079e-05/0.3657, allocations: 8.891 kB / 0.5649 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.3659, allocations: 150.3 kB / 0.565 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.841e-05/0.3659, allocations: 4.375 kB / 0.565 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/0.366, allocations: 8.375 kB / 0.565 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.3663, allocations: 109.9 kB / 0.5651 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.3663, allocations: 0 / 0.5651 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.3663, allocations: 4 kB / 0.5651 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.3663, allocations: 0 / 0.5651 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.3665, allocations: 51.95 kB / 0.5652 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006629/0.3671, allocations: 316.2 kB / 0.5655 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003475/0.3675, allocations: 94.52 kB / 0.5656 GB, free: 96 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.3676, allocations: 52.78 kB / 0.5656 GB, free: 40 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.35e-05/0.3676, allocations: 0 / 0.5656 GB, free: 40 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003093/0.3679, allocations: 99.31 kB / 0.5657 GB, free: 15.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.3679, allocations: 0 / 0.5657 GB, free: 15.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004883/0.3684, allocations: 145.5 kB / 0.5659 GB, free: 15.78 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.17e-05/0.3685, allocations: 51.41 kB / 0.5659 GB, free: 15.72 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.3686, allocations: 144.7 kB / 0.566 GB, free: 15.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.3686, allocations: 29.7 kB / 0.5661 GB, free: 15.53 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.037e-05/0.3687, allocations: 100.3 kB / 0.5662 GB, free: 15.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.859e-05/0.3687, allocations: 23.94 kB / 0.5662 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.942e-05/0.3688, allocations: 29.64 kB / 0.5662 GB, free: 15.37 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3689, allocations: 314.8 kB / 0.5665 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.3691, allocations: 43.97 kB / 0.5666 GB, free: 15.01 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.3692, allocations: 49.69 kB / 0.5666 GB, free: 14.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.3694, allocations: 81.61 kB / 0.5667 GB, free: 14.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3694, allocations: 0 / 0.5667 GB, free: 14.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002995/0.3697, allocations: 113.5 kB / 0.5668 GB, free: 14.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.3697, allocations: 8 kB / 0.5668 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3698, allocations: 0 / 0.5668 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.3698, allocations: 0 / 0.5668 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.3699, allocations: 20.3 kB / 0.5668 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.3699, allocations: 3.938 kB / 0.5668 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.384e-05/0.37, allocations: 15.98 kB / 0.5668 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.37, allocations: 3.938 kB / 0.5668 GB, free: 14.7 MB / 414.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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$whenCondition2) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.3701, allocations: 129.8 kB / 0.567 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.873e-05/0.3701, allocations: 7.953 kB / 0.567 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.44e-05/0.3702, allocations: 12.7 kB / 0.567 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3702, allocations: 4 kB / 0.567 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.3702, allocations: 7.938 kB / 0.567 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3702, allocations: 0 / 0.567 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005358/0.3707, allocations: 322.1 kB / 0.5673 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3707, allocations: 0 / 0.5673 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.647e-05/0.3708, allocations: 11.94 kB / 0.5673 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3708, allocations: 8 kB / 0.5673 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.3708, allocations: 7.922 kB / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3708, allocations: 0 / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3708, allocations: 0 / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000489/0.3713, allocations: 239.4 kB / 0.5676 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.645e-05/0.3713, allocations: 12.02 kB / 0.5676 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.396e-05/0.3714, allocations: 7.969 kB / 0.5676 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.3715, allocations: 19.97 kB / 0.5676 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.566e-05/0.3716, allocations: 19.97 kB / 0.5676 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.3716, allocations: 3.938 kB / 0.5676 GB, free: 13.83 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.047e-05/0.3717, allocations: 108.2 kB / 0.5677 GB, free: 13.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3717, allocations: 0 / 0.5677 GB, free: 13.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002442/0.3719, allocations: 15.94 kB / 0.5677 GB, free: 13.71 MB / 414.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 (integrator.reset,$whenCondition2,$whenCondition1,change.u,booleanPulse.pulseStart) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001215/0.3721, allocations: 103.2 kB / 0.5678 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003037/0.3724, allocations: 75.95 kB / 0.5679 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3724, allocations: 0 / 0.5679 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.3725, allocations: 39.91 kB / 0.568 GB, free: 13.49 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.3728, allocations: 24.05 kB / 0.568 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001/0.3738, allocations: 288.2 kB / 0.5683 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.754e-05/0.3739, allocations: 85.31 kB / 0.5683 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.551e-05/0.374, allocations: 15.44 kB / 0.5683 GB, free: 13.03 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.374, allocations: 0 / 0.5683 GB, free: 13.03 MB / 414.1 MB Notification: Performance of Templates: time 0.003318/0.3773, allocations: 1.337 MB / 0.5697 GB, free: 11.7 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.9098243820481]