Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.001399/0.001399, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.002115/0.002115, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 51.91 kB / 378.3 MB, free: 2.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2735, allocations: 53.36 MB / 431.6 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00474/0.2782, allocations: 3.017 MB / 434.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.2798, allocations: 0.7556 MB / 435.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.28, allocations: 11.94 kB / 435.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002466/0.2803, allocations: 59.42 kB / 435.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000284/0.2806, allocations: 111.1 kB / 435.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003397/0.2809, allocations: 111.8 kB / 435.7 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004568/0.2814, allocations: 414.3 kB / 436.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002735/0.2816, allocations: 142.4 kB / 436.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001843/0.2818, allocations: 167.4 kB / 436.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002894/0.2821, allocations: 191.2 kB / 436.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.823e-05/0.2822, allocations: 40 kB / 436.6 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.2823, allocations: 55.98 kB / 436.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.2824, allocations: 107.7 kB / 436.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001947/0.2826, allocations: 203 kB / 437 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006253/0.2833, allocations: 0.5032 MB / 437.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2833, allocations: 3.938 kB / 437.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2833, allocations: 0 / 437.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.2833, allocations: 0 / 437.5 MB, free: 1.09 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.00163/0.2849, allocations: 0.7195 MB / 438.2 MB, free: 344 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.2849, allocations: 12.03 kB / 438.2 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.963e-05/0.285, allocations: 40.7 kB / 438.2 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005335/0.2856, allocations: 285 kB / 438.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.2856, allocations: 29.03 kB / 438.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.919e-05/0.2857, allocations: 28.38 kB / 438.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005907/0.2863, allocations: 350.2 kB / 438.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.2863, allocations: 0 / 438.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.573e-05/0.2863, allocations: 12 kB / 438.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.2863, allocations: 8 kB / 438.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004419/0.2868, allocations: 242.4 kB / 439.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.2887, allocations: 1.253 MB / 440.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003919/0.2891, allocations: 170.5 kB / 440.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002588/0.2893, allocations: 117 kB / 440.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.634e-05/0.2894, allocations: 4 kB / 440.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.2894, allocations: 38.5 kB / 440.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.303e-06/0.2894, allocations: 0 / 440.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004805/0.2899, allocations: 227.7 kB / 441 MB, free: 13.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.2899, allocations: 51.41 kB / 441 MB, free: 13.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003758/0.2903, allocations: 328.1 kB / 441.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.2903, allocations: 41.62 kB / 441.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.2905, allocations: 212.4 kB / 441.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.51e-05/0.2906, allocations: 51.58 kB / 441.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.911e-05/0.2906, allocations: 49.66 kB / 441.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2908, allocations: 338.8 kB / 442 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.2909, allocations: 67.97 kB / 442.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.2911, allocations: 143.6 kB / 442.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.2914, allocations: 170.2 kB / 442.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2914, allocations: 4 kB / 442.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004168/0.2918, allocations: 241.3 kB / 442.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.2918, allocations: 4 kB / 442.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.2918, allocations: 4 kB / 442.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.2918, allocations: 4 kB / 442.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.292, allocations: 47.91 kB / 442.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.2921, allocations: 4 kB / 442.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003815/0.2924, allocations: 67.86 kB / 442.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.2925, allocations: 12 kB / 442.8 MB, free: 11.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001628/0.2926, allocations: 145.8 kB / 442.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.205e-05/0.2927, allocations: 31.8 kB / 442.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004141/0.2931, allocations: 207.6 kB / 443.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.2931, allocations: 0 / 443.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2931, allocations: 4 kB / 443.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2931, allocations: 0 / 443.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008486/0.294, allocations: 0.6037 MB / 443.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.294, allocations: 0 / 443.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.2941, allocations: 27.98 kB / 443.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.2941, allocations: 4 kB / 443.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.2942, allocations: 4 kB / 443.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.2942, allocations: 0 / 443.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2942, allocations: 4 kB / 443.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005424/0.2947, allocations: 387.5 kB / 444.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.309e-05/0.2948, allocations: 35.73 kB / 444.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.2948, allocations: 4 kB / 444.2 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004168/0.2952, allocations: 51.92 kB / 444.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/0.2954, allocations: 75.86 kB / 444.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.2954, allocations: 20 kB / 444.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002685/0.2957, allocations: 239 kB / 444.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2957, allocations: 0 / 444.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003755/0.2961, allocations: 83.78 kB / 444.7 MB, free: 9.516 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.0001438/0.2962, allocations: 103.2 kB / 444.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003653/0.2966, allocations: 175 kB / 444.9 MB, free: 9.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2966, allocations: 8.062 kB / 445 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.2968, allocations: 99.88 kB / 445.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004184/0.2972, allocations: 56.89 kB / 445.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.2987, allocations: 0.7161 MB / 445.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004321/0.2991, allocations: 0.7792 MB / 446.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001308/0.2992, allocations: 34.28 kB / 446.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.48e-05/0.2993, allocations: 23.44 kB / 446.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2993, allocations: 4 kB / 446.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of Templates: time 0.009764/0.3091, allocations: 4.65 MB / 451.3 MB, free: 2.859 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.189684593817219]