Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 214.8 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.448/1.448, allocations: 230.6 MB / 258.2 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2386/0.2386, allocations: 46.96 MB / 361.6 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 75.88 kB / 0.4973 GB, free: 7.211 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3831/0.3851, allocations: 66.03 MB / 0.5618 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00438/0.3895, allocations: 1.627 MB / 0.5634 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.3911, allocations: 0.5542 MB / 0.5639 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.3912, allocations: 0 / 0.5639 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.3913, allocations: 11.88 kB / 0.5639 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.335e-05/0.3914, allocations: 19.84 kB / 0.564 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004753/0.3919, allocations: 87.41 kB / 0.564 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002624/0.3921, allocations: 115.7 kB / 0.5642 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.3923, allocations: 27.62 kB / 0.5642 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.3924, allocations: 51.78 kB / 0.5642 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.3925, allocations: 47.75 kB / 0.5643 GB, free: 1.625 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.952e-05/0.3926, allocations: 8 kB / 0.5643 GB, free: 1.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.46e-05/0.3926, allocations: 8 kB / 0.5643 GB, free: 1.609 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.273e-05/0.3926, allocations: 19.92 kB / 0.5643 GB, free: 1.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.236e-05/0.3927, allocations: 27.88 kB / 0.5643 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.3929, allocations: 98.36 kB / 0.5644 GB, free: 1.469 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3929, allocations: 0 / 0.5644 GB, free: 1.469 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3929, allocations: 3.938 kB / 0.5644 GB, free: 1.465 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.393, allocations: 0 / 0.5644 GB, free: 1.465 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.0008442/0.3938, allocations: 342.8 kB / 0.5648 GB, free: 1.098 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.3938, allocations: 8.031 kB / 0.5648 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.75e-05/0.3939, allocations: 20.83 kB / 0.5648 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.3942, allocations: 150.3 kB / 0.5649 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.998e-05/0.3943, allocations: 8.375 kB / 0.5649 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.567e-05/0.3943, allocations: 8.312 kB / 0.565 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004224/0.3947, allocations: 113.8 kB / 0.5651 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.3947, allocations: 0 / 0.5651 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.3948, allocations: 4 kB / 0.5651 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.3948, allocations: 4 kB / 0.5651 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/0.395, allocations: 51.97 kB / 0.5651 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009673/0.396, allocations: 308.2 kB / 0.5654 GB, free: 384 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005698/0.3966, allocations: 106.5 kB / 0.5655 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.3967, allocations: 28.92 kB / 0.5655 GB, free: 236 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.3967, allocations: 4 kB / 0.5655 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003607/0.3971, allocations: 103.2 kB / 0.5656 GB, free: 116 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.713e-06/0.3971, allocations: 0 / 0.5656 GB, free: 116 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0006327/0.3977, allocations: 137.6 kB / 0.5658 GB, free: 15.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.3978, allocations: 59.41 kB / 0.5658 GB, free: 15.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001937/0.398, allocations: 136.7 kB / 0.566 GB, free: 15.76 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.434e-05/0.398, allocations: 25.7 kB / 0.566 GB, free: 15.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.3982, allocations: 104.3 kB / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.182e-05/0.3982, allocations: 27.91 kB / 0.5661 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.46e-05/0.3983, allocations: 21.72 kB / 0.5661 GB, free: 15.56 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002294/0.3985, allocations: 322.8 kB / 0.5664 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.3987, allocations: 31.98 kB / 0.5665 GB, free: 15.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001711/0.3989, allocations: 57.62 kB / 0.5665 GB, free: 15.14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.3992, allocations: 73.67 kB / 0.5666 GB, free: 15.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3992, allocations: 0 / 0.5666 GB, free: 15.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003485/0.3995, allocations: 125.7 kB / 0.5667 GB, free: 14.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3995, allocations: 4 kB / 0.5667 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3995, allocations: 0 / 0.5667 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/0.3996, allocations: 4 kB / 0.5667 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.3997, allocations: 19.92 kB / 0.5667 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.3997, allocations: 3.938 kB / 0.5667 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.3998, allocations: 23.95 kB / 0.5668 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.3998, allocations: 4 kB / 0.5668 GB, free: 14.88 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.000127/0.3999, allocations: 117.8 kB / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.547e-05/0.4, allocations: 7.953 kB / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.398e-05/0.4, allocations: 12.72 kB / 0.5669 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.4, allocations: 0 / 0.5669 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.4, allocations: 3.938 kB / 0.5669 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.4, allocations: 0 / 0.5669 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005582/0.4006, allocations: 334.1 kB / 0.5672 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4006, allocations: 0 / 0.5672 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.804e-05/0.4007, allocations: 15.98 kB / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4007, allocations: 0 / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.4007, allocations: 7.938 kB / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4007, allocations: 0 / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4007, allocations: 4 kB / 0.5673 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004934/0.4012, allocations: 243.8 kB / 0.5675 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.775e-05/0.4012, allocations: 7.984 kB / 0.5675 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.4012, allocations: 7.922 kB / 0.5675 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.4014, allocations: 20.05 kB / 0.5675 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.518e-05/0.4014, allocations: 19.95 kB / 0.5675 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.248e-06/0.4014, allocations: 4 kB / 0.5675 GB, free: 14.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.474e-05/0.4015, allocations: 99.27 kB / 0.5676 GB, free: 13.92 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4015, allocations: 0 / 0.5676 GB, free: 13.92 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002589/0.4018, allocations: 23.94 kB / 0.5677 GB, free: 13.9 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.000114/0.4019, allocations: 91.25 kB / 0.5677 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003169/0.4022, allocations: 87.86 kB / 0.5678 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4022, allocations: 0 / 0.5678 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.4024, allocations: 39.98 kB / 0.5679 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.4027, allocations: 22.39 kB / 0.5679 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009991/0.4037, allocations: 274.5 kB / 0.5682 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.27e-05/0.4038, allocations: 85.33 kB / 0.5682 GB, free: 13.26 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.465e-05/0.4039, allocations: 8.656 kB / 0.5682 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.117e-05/0.4039, allocations: 19.38 kB / 0.5683 GB, free: 13.23 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4039, allocations: 0 / 0.5683 GB, free: 13.23 MB / 414.1 MB Notification: Performance of Templates: time 0.004622/0.4085, allocations: 1.289 MB / 0.5695 GB, free: 11.96 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 5.044156794989249]