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.001994/0.001994, allocations: 85.97 kB / 20.68 MB, free: 1.035 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.002456/0.002456, allocations: 159.1 kB / 23.95 MB, free: 4.168 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.543/1.543, allocations: 177 MB / 204.1 MB, free: 9.168 MB / 190.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 1.894e-06/1.894e-06, allocations: 0 / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.594e-05/2.783e-05, allocations: 6.219 kB / 325 MB, free: 480 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004491/0.004519, allocations: 2.793 MB / 327.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.00618, allocations: 0.7135 MB / 328.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001954/0.006375, allocations: 10.41 kB / 328.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002342/0.006609, allocations: 58.48 kB / 328.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003298/0.006939, allocations: 115.5 kB / 328.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004052/0.007344, allocations: 112.6 kB / 328.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005531/0.007897, allocations: 422.6 kB / 329.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003117/0.008209, allocations: 143.3 kB / 329.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003623/0.008571, allocations: 241.5 kB / 329.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003494/0.008921, allocations: 134.7 kB / 329.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.488e-05/0.008996, allocations: 40.5 kB / 329.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.009141, allocations: 54.31 kB / 329.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001905/0.009332, allocations: 110.7 kB / 329.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001901/0.009522, allocations: 138 kB / 330.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007697/0.01029, allocations: 0.5049 MB / 330.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.0103, allocations: 4 kB / 330.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.0103, allocations: 1.5 kB / 330.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.0103, allocations: 0 / 330.6 MB, free: 13.03 MB / 302.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.001773/0.01208, allocations: 0.731 MB / 331.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.01211, allocations: 13.02 kB / 331.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.54e-05/0.01221, allocations: 41.58 kB / 331.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005567/0.01277, allocations: 286.2 kB / 331.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.01279, allocations: 22.09 kB / 331.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.343e-05/0.01286, allocations: 32.31 kB / 331.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006437/0.0135, allocations: 396.6 kB / 332.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.01351, allocations: 5.219 kB / 332.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.985e-05/0.01355, allocations: 22.84 kB / 332.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.01356, allocations: 12.19 kB / 332.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004492/0.01401, allocations: 234.5 kB / 332.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.01586, allocations: 1.098 MB / 333.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000397/0.01626, allocations: 167.1 kB / 333.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.01654, allocations: 113.7 kB / 333.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.573e-05/0.01659, allocations: 2.5 kB / 333.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.01663, allocations: 37 kB / 333.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.503e-06/0.01663, allocations: 3.938 kB / 333.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005367/0.01716, allocations: 225.7 kB / 334 MB, free: 10.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.01721, allocations: 58.06 kB / 334 MB, free: 10.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004064/0.01762, allocations: 304.2 kB / 334.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/0.01765, allocations: 34.86 kB / 334.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.01783, allocations: 213.3 kB / 334.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.132e-05/0.01789, allocations: 58.14 kB / 334.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.018, allocations: 47.17 kB / 334.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.01817, allocations: 335.5 kB / 335 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.01833, allocations: 70.98 kB / 335.1 MB, free: 9.559 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.01853, allocations: 131.3 kB / 335.2 MB, free: 9.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.01882, allocations: 166.1 kB / 335.4 MB, free: 9.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.01882, allocations: 1.594 kB / 335.4 MB, free: 9.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004383/0.01926, allocations: 234.8 kB / 335.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.01928, allocations: 6.812 kB / 335.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.01929, allocations: 1.531 kB / 335.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.01931, allocations: 12.09 kB / 335.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002072/0.01952, allocations: 50.41 kB / 335.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.01953, allocations: 3.344 kB / 335.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/0.01997, allocations: 65.95 kB / 335.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.152e-05/0.02, allocations: 8.406 kB / 335.7 MB, free: 9.133 MB / 302.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.0002054/0.02021, allocations: 160.5 kB / 335.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.218e-05/0.02027, allocations: 26.3 kB / 335.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004617/0.02073, allocations: 200 kB / 336.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.02074, allocations: 6.156 kB / 336.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.02074, allocations: 0 / 336.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.02075, allocations: 1.062 kB / 336.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008169/0.02156, allocations: 0.5069 MB / 336.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.02156, allocations: 1.344 kB / 336.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.02174, allocations: 42.56 kB / 336.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.02174, allocations: 1.5 kB / 336.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.02176, allocations: 13.42 kB / 336.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.02176, allocations: 1.531 kB / 336.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.02177, allocations: 1.438 kB / 336.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005507/0.02232, allocations: 364 kB / 337 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.875e-05/0.02239, allocations: 43.02 kB / 337.1 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.788e-05/0.02243, allocations: 10.11 kB / 337.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004616/0.0229, allocations: 58.42 kB / 337.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.02311, allocations: 71.38 kB / 337.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.02313, allocations: 9.531 kB / 337.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002907/0.02342, allocations: 222.5 kB / 337.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.02342, allocations: 0 / 337.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004487/0.02387, allocations: 83.5 kB / 337.5 MB, free: 7.863 MB / 302.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.0002008/0.02407, allocations: 106.3 kB / 337.6 MB, free: 7.766 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004255/0.0245, allocations: 180.1 kB / 337.8 MB, free: 7.688 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.0245, allocations: 5.125 kB / 337.8 MB, free: 7.684 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001993/0.0247, allocations: 100.8 kB / 337.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004408/0.02514, allocations: 37.52 kB / 337.9 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001515/0.02665, allocations: 0.6584 MB / 338.6 MB, free: 7.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001848/0.02684, allocations: 168.8 kB / 338.8 MB, free: 6.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.02697, allocations: 26.3 kB / 338.8 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.737e-05/0.02707, allocations: 28.5 kB / 338.8 MB, free: 6.832 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.02707, allocations: 4 kB / 338.8 MB, free: 6.828 MB / 302.1 MB Notification: Performance of Templates: time 0.009857/0.03692, allocations: 4.291 MB / 343.1 MB, free: 2.582 MB / 302.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.018881715834141]