Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001625/0.001625, allocations: 110.4 kB / 21.17 MB, free: 0.7852 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.002165/0.002165, allocations: 217.4 kB / 24.47 MB, free: 4.359 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.459/1.459, allocations: 230.2 MB / 257.8 MB, free: 8.508 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2249/0.2249, allocations: 46.88 MB / 361.1 MB, free: 4.652 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-beta.om/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_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002347/0.002347, allocations: 75.88 kB / 0.4967 GB, free: 7.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2812, allocations: 65.98 MB / 0.5612 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002847/0.284, allocations: 1.666 MB / 0.5628 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.2851, allocations: 0.5893 MB / 0.5634 GB, free: 2.781 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.289e-05/0.2851, allocations: 4 kB / 0.5634 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.2853, allocations: 15.86 kB / 0.5634 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.248e-05/0.2853, allocations: 11.88 kB / 0.5634 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003184/0.2856, allocations: 91.75 kB / 0.5635 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001704/0.2858, allocations: 107.8 kB / 0.5636 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.2859, allocations: 26.64 kB / 0.5636 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.454e-05/0.286, allocations: 55.77 kB / 0.5637 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.465e-05/0.2861, allocations: 39.77 kB / 0.5637 GB, free: 2.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.2861, allocations: 8 kB / 0.5637 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.661e-05/0.2861, allocations: 8 kB / 0.5637 GB, free: 2.422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.789e-05/0.2861, allocations: 23.98 kB / 0.5638 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.056e-05/0.2862, allocations: 39.73 kB / 0.5638 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000152/0.2863, allocations: 83.64 kB / 0.5639 GB, free: 2.277 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.2864, allocations: 4 kB / 0.5639 GB, free: 2.273 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2864, allocations: 0 / 0.5639 GB, free: 2.273 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.2864, allocations: 3.938 kB / 0.5639 GB, free: 2.27 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.0006955/0.2871, allocations: 431.8 kB / 0.5643 GB, free: 1.797 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.2871, allocations: 16.03 kB / 0.5643 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.662e-05/0.2871, allocations: 8.891 kB / 0.5643 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.2874, allocations: 200.2 kB / 0.5645 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.2874, allocations: 4.375 kB / 0.5645 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.985e-05/0.2875, allocations: 16.36 kB / 0.5645 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003087/0.2878, allocations: 105.9 kB / 0.5646 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.2878, allocations: 7.938 kB / 0.5646 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.2878, allocations: 0 / 0.5646 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2878, allocations: 0 / 0.5646 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.288, allocations: 55.91 kB / 0.5647 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007127/0.2887, allocations: 392.5 kB / 0.5651 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003771/0.2891, allocations: 98.55 kB / 0.5652 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.2892, allocations: 32.89 kB / 0.5652 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.332e-05/0.2892, allocations: 0 / 0.5652 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002629/0.2895, allocations: 99.34 kB / 0.5653 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.2895, allocations: 0 / 0.5653 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004706/0.2899, allocations: 137.5 kB / 0.5654 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.29, allocations: 59.33 kB / 0.5655 GB, free: 464 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.2901, allocations: 153.2 kB / 0.5656 GB, free: 304 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.2901, allocations: 29.7 kB / 0.5656 GB, free: 268 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.842e-05/0.2902, allocations: 108.1 kB / 0.5658 GB, free: 156 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.2902, allocations: 15.86 kB / 0.5658 GB, free: 140 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-05/0.2903, allocations: 25.7 kB / 0.5658 GB, free: 108 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.2904, allocations: 322.8 kB / 0.5661 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.2906, allocations: 31.98 kB / 0.5661 GB, free: 15.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.2907, allocations: 57.62 kB / 0.5662 GB, free: 15.69 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002395/0.291, allocations: 81.8 kB / 0.5663 GB, free: 15.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.291, allocations: 0 / 0.5663 GB, free: 15.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000323/0.2913, allocations: 121.5 kB / 0.5664 GB, free: 15.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.2913, allocations: 11.94 kB / 0.5664 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.2913, allocations: 320 / 0.5664 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.2913, allocations: 0 / 0.5664 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.2914, allocations: 23.95 kB / 0.5664 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.2915, allocations: 0 / 0.5664 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.2916, allocations: 20.06 kB / 0.5664 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.2916, allocations: 7.984 kB / 0.5664 GB, free: 15.41 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 9.773e-05/0.2917, allocations: 120.2 kB / 0.5666 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/0.2917, allocations: 19.84 kB / 0.5666 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.009e-05/0.2917, allocations: 12.7 kB / 0.5666 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.2917, allocations: 4 kB / 0.5666 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2917, allocations: 4 kB / 0.5666 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2918, allocations: 0 / 0.5666 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005724/0.2923, allocations: 398.3 kB / 0.567 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2923, allocations: 3.984 kB / 0.567 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.824e-05/0.2924, allocations: 12 kB / 0.567 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2924, allocations: 0 / 0.567 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.2924, allocations: 4 kB / 0.567 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2924, allocations: 0 / 0.567 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.2924, allocations: 7.984 kB / 0.567 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004951/0.2929, allocations: 247.3 kB / 0.5672 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.743e-05/0.293, allocations: 89.05 kB / 0.5673 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.957e-05/0.293, allocations: 0 / 0.5673 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.2932, allocations: 19.97 kB / 0.5673 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.239e-05/0.2932, allocations: 11.98 kB / 0.5674 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.2932, allocations: 8.062 kB / 0.5674 GB, free: 14.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.572e-05/0.2933, allocations: 115.2 kB / 0.5675 GB, free: 14.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2933, allocations: 0 / 0.5675 GB, free: 14.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002389/0.2936, allocations: 12 kB / 0.5675 GB, free: 14.25 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 9.202e-05/0.2936, allocations: 95.25 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003384/0.294, allocations: 87.92 kB / 0.5677 GB, free: 14.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.294, allocations: 192 / 0.5677 GB, free: 14.06 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.2941, allocations: 35.97 kB / 0.5677 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003011/0.2944, allocations: 23.92 kB / 0.5677 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009602/0.2954, allocations: 278.3 kB / 0.568 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.2957, allocations: 0.704 MB / 0.5687 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.189e-05/0.2958, allocations: 8.547 kB / 0.5687 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.884e-05/0.2958, allocations: 19.44 kB / 0.5687 GB, free: 12.95 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2958, allocations: 0 / 0.5687 GB, free: 12.95 MB / 414.1 MB Notification: Performance of Templates: time 0.004081/0.2999, allocations: 1.262 MB / 0.5699 GB, free: 11.69 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 4.8174737971276045]