Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.008544/0.008544, allocations: 105.9 kB / 21.98 MB, free: 5.211 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.002135/0.002135, allocations: 220.3 kB / 25.29 MB, free: 3.215 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.533/1.533, allocations: 230.6 MB / 259 MB, free: 8.004 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.001938/0.001938, allocations: 59.91 kB / 379.8 MB, free: 2.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2603, allocations: 53.36 MB / 433.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004475/0.2647, allocations: 3.026 MB / 436.2 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.2662, allocations: 0.7556 MB / 436.9 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001996/0.2664, allocations: 7.938 kB / 436.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002144/0.2666, allocations: 63.38 kB / 437 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.2668, allocations: 111.1 kB / 437.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.2672, allocations: 103.8 kB / 437.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004858/0.2677, allocations: 418.3 kB / 437.6 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002723/0.268, allocations: 146.4 kB / 437.8 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001803/0.2682, allocations: 159.4 kB / 437.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.2684, allocations: 183.2 kB / 438.1 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.966e-05/0.2685, allocations: 40 kB / 438.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.2686, allocations: 63.92 kB / 438.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.2688, allocations: 107.7 kB / 438.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002015/0.269, allocations: 207 kB / 438.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005863/0.2696, allocations: 0.4915 MB / 439 MB, free: 1.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2696, allocations: 3.938 kB / 439 MB, free: 1.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2696, allocations: 0 / 439 MB, free: 1.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.2696, allocations: 0 / 439 MB, free: 1.086 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.001551/0.2711, allocations: 0.7273 MB / 439.7 MB, free: 332 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2712, allocations: 8.031 kB / 439.7 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.477e-05/0.2712, allocations: 40.7 kB / 439.8 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000514/0.2718, allocations: 289 kB / 440.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.2718, allocations: 21.03 kB / 440.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.822e-05/0.2718, allocations: 36.38 kB / 440.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005892/0.2724, allocations: 346.2 kB / 440.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.2724, allocations: 0 / 440.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.403e-05/0.2725, allocations: 16 kB / 440.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.2725, allocations: 11.94 kB / 440.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004408/0.2729, allocations: 234.5 kB / 440.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.2748, allocations: 1.261 MB / 442 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003779/0.2751, allocations: 162.6 kB / 442.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.2754, allocations: 121 kB / 442.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.2754, allocations: 4 kB / 442.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.2755, allocations: 42.5 kB / 442.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.2755, allocations: 0 / 442.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005156/0.276, allocations: 232.3 kB / 442.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.276, allocations: 55.41 kB / 442.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003856/0.2764, allocations: 324.2 kB / 442.9 MB, free: 13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.2765, allocations: 29.64 kB / 442.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.2766, allocations: 216.4 kB / 443.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.471e-05/0.2767, allocations: 59.53 kB / 443.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.515e-05/0.2768, allocations: 41.7 kB / 443.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.2769, allocations: 334.8 kB / 443.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.2771, allocations: 79.95 kB / 443.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.2773, allocations: 135.6 kB / 443.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.2775, allocations: 167.5 kB / 443.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2775, allocations: 0 / 443.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004063/0.2779, allocations: 245.2 kB / 444.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.2779, allocations: 6.812 kB / 444.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.108e-06/0.2779, allocations: 4 kB / 444.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.278, allocations: 7.984 kB / 444.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.2781, allocations: 43.92 kB / 444.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.2781, allocations: 0 / 444.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003564/0.2785, allocations: 72.02 kB / 444.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.2785, allocations: 12 kB / 444.3 MB, free: 11.49 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.0002349/0.2788, allocations: 153.8 kB / 444.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.169e-05/0.2788, allocations: 31.75 kB / 444.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004124/0.2792, allocations: 195.7 kB / 444.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.2792, allocations: 4 kB / 444.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2792, allocations: 0 / 444.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2793, allocations: 3.984 kB / 444.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008192/0.2801, allocations: 0.5998 MB / 445.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2801, allocations: 0 / 445.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.2802, allocations: 27.92 kB / 445.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2802, allocations: 4 kB / 445.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.2803, allocations: 11.98 kB / 445.3 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2803, allocations: 7.938 kB / 445.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2803, allocations: 0 / 445.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005299/0.2808, allocations: 379.2 kB / 445.7 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.279e-05/0.2809, allocations: 35.77 kB / 445.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.346e-05/0.2809, allocations: 7.984 kB / 445.8 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003836/0.2813, allocations: 55.92 kB / 445.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.2815, allocations: 79.88 kB / 445.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.2815, allocations: 7.984 kB / 445.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002779/0.2818, allocations: 239 kB / 446.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2818, allocations: 0 / 446.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000363/0.2821, allocations: 87.78 kB / 446.2 MB, free: 9.5 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.0001578/0.2823, allocations: 103.2 kB / 446.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003718/0.2826, allocations: 176 kB / 446.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2827, allocations: 0 / 446.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001868/0.2828, allocations: 99.88 kB / 446.6 MB, free: 9.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004171/0.2833, allocations: 52.89 kB / 446.6 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.2848, allocations: 0.7492 MB / 447.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.2852, allocations: 0.7753 MB / 448.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.2853, allocations: 27.44 kB / 448.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2853, allocations: 0 / 448.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of Templates: time 0.007275/0.2925, allocations: 4.372 MB / 452.6 MB, free: 3.105 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 8.55811498593539]