Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.001667/0.001667, allocations: 109 kB / 21.23 MB, free: 0.6641 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.002256/0.002256, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.528/1.528, allocations: 230.3 MB / 258 MB, free: 8.234 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 71.86 kB / 378.7 MB, free: 2.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.275, allocations: 53.35 MB / 432.1 MB, free: 7.25 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00525/0.2803, allocations: 3.031 MB / 435.1 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.2819, allocations: 0.7556 MB / 435.9 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002129/0.2821, allocations: 7.938 kB / 435.9 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002544/0.2823, allocations: 63.42 kB / 436 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002979/0.2826, allocations: 111.1 kB / 436.1 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.283, allocations: 99.83 kB / 436.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005032/0.2836, allocations: 418.3 kB / 436.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003169/0.2839, allocations: 152.3 kB / 436.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.2841, allocations: 163.4 kB / 436.9 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002785/0.2843, allocations: 183.2 kB / 437.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.74e-05/0.2844, allocations: 40 kB / 437.1 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.2845, allocations: 63.98 kB / 437.2 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.2847, allocations: 107.6 kB / 437.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002057/0.2849, allocations: 203 kB / 437.5 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006478/0.2856, allocations: 0.498 MB / 438 MB, free: 1.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2856, allocations: 0 / 438 MB, free: 1.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2856, allocations: 0 / 438 MB, free: 1.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.2856, allocations: 0 / 438 MB, free: 1.371 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.001815/0.2874, allocations: 0.7234 MB / 438.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.2874, allocations: 8.031 kB / 438.7 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.183e-05/0.2875, allocations: 40.7 kB / 438.7 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005512/0.2881, allocations: 300.9 kB / 439 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.2881, allocations: 21.03 kB / 439 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.214e-05/0.2882, allocations: 28.38 kB / 439.1 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006411/0.2888, allocations: 342.2 kB / 439.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.2888, allocations: 7.875 kB / 439.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.899e-05/0.2889, allocations: 15.98 kB / 439.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.2889, allocations: 8 kB / 439.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004602/0.2893, allocations: 238.5 kB / 439.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.2913, allocations: 1.253 MB / 440.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004357/0.2918, allocations: 162.5 kB / 441.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/0.2921, allocations: 120.7 kB / 441.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.2921, allocations: 7.984 kB / 441.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.609e-05/0.2921, allocations: 38.84 kB / 441.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.353e-06/0.2921, allocations: 0 / 441.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005403/0.2927, allocations: 225.4 kB / 441.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.2927, allocations: 63.28 kB / 441.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004023/0.2931, allocations: 324.2 kB / 441.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/0.2932, allocations: 29.7 kB / 441.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.2933, allocations: 212.4 kB / 442.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.645e-05/0.2934, allocations: 51.59 kB / 442.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.2935, allocations: 53.66 kB / 442.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.2937, allocations: 334.8 kB / 442.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.2939, allocations: 67.97 kB / 442.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.294, allocations: 132.3 kB / 442.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.2943, allocations: 174 kB / 442.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2943, allocations: 4 kB / 442.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004607/0.2948, allocations: 237.2 kB / 443.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2948, allocations: 6.344 kB / 443.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.2948, allocations: 4 kB / 443.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.2948, allocations: 4 kB / 443.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.295, allocations: 51.91 kB / 443.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.295, allocations: 256 / 443.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004185/0.2955, allocations: 71.77 kB / 443.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.2955, allocations: 8 kB / 443.3 MB, free: 11.79 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.000178/0.2957, allocations: 154.2 kB / 443.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.2957, allocations: 27.8 kB / 443.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000457/0.2962, allocations: 207.6 kB / 443.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.2962, allocations: 8 kB / 443.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.2962, allocations: 0 / 443.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2962, allocations: 0 / 443.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009349/0.2972, allocations: 0.6024 MB / 444.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2972, allocations: 0 / 444.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.2973, allocations: 31.98 kB / 444.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2973, allocations: 3.938 kB / 444.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.2973, allocations: 3.984 kB / 444.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.2973, allocations: 4.031 kB / 444.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2973, allocations: 4 kB / 444.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005546/0.2979, allocations: 380.5 kB / 444.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.468e-05/0.298, allocations: 39.77 kB / 444.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.402e-05/0.298, allocations: 0 / 444.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004514/0.2985, allocations: 59.98 kB / 444.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/0.2987, allocations: 83.8 kB / 444.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.2987, allocations: 4 kB / 444.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002651/0.2989, allocations: 239 kB / 445.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2989, allocations: 0 / 445.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000375/0.2993, allocations: 83.78 kB / 445.2 MB, free: 9.797 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.0001649/0.2995, allocations: 111.2 kB / 445.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003748/0.2999, allocations: 171.8 kB / 445.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2999, allocations: 0 / 445.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001889/0.3, allocations: 107.5 kB / 445.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004362/0.3005, allocations: 52.28 kB / 445.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/0.3022, allocations: 0.7238 MB / 446.3 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004572/0.3026, allocations: 0.7714 MB / 447.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000148/0.3028, allocations: 38.22 kB / 447.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.218e-05/0.3029, allocations: 27.44 kB / 447.2 MB, free: 7.742 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3029, allocations: 4 kB / 447.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of Templates: time 0.009903/0.3128, allocations: 4.653 MB / 451.8 MB, free: 3.129 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.190760846249759]