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.001241/0.001241, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.004902/0.004902, allocations: 159.5 kB / 24.7 MB, free: 9.441 MB / 18.57 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 0.849/0.849, allocations: 177 MB / 204.9 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.172e-06/1.172e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.947e-05/2.064e-05, allocations: 2.281 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002631/0.002652, allocations: 2.8 MB / 328.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009876/0.00364, allocations: 0.7206 MB / 329.3 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.003769, allocations: 7.938 kB / 329.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001679/0.003937, allocations: 63.42 kB / 329.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002286/0.004166, allocations: 115 kB / 329.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003198/0.004486, allocations: 111.8 kB / 329.6 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002976/0.004783, allocations: 422.1 kB / 330 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/0.004984, allocations: 142.3 kB / 330.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.005175, allocations: 239.5 kB / 330.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.005345, allocations: 139.6 kB / 330.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.186e-05/0.005387, allocations: 40 kB / 330.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.6e-05/0.005473, allocations: 52 kB / 330.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.005593, allocations: 111.6 kB / 330.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.708e-05/0.00568, allocations: 139.7 kB / 330.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003817/0.006062, allocations: 0.4984 MB / 331.3 MB, free: 9.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.006065, allocations: 7.984 kB / 331.3 MB, free: 9.812 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.006066, allocations: 0 / 331.3 MB, free: 9.812 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.006072, allocations: 0 / 331.3 MB, free: 9.812 MB / 298.7 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.0009621/0.007034, allocations: 0.7272 MB / 332.1 MB, free: 9.051 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.007067, allocations: 11.98 kB / 332.1 MB, free: 9.039 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.057e-05/0.007128, allocations: 40.7 kB / 332.1 MB, free: 9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003185/0.007446, allocations: 288.6 kB / 332.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.007462, allocations: 21.03 kB / 332.4 MB, free: 8.676 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.939e-05/0.007502, allocations: 32.38 kB / 332.4 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003906/0.007892, allocations: 397.8 kB / 332.8 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.007903, allocations: 4.188 kB / 332.8 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.441e-05/0.007927, allocations: 16.38 kB / 332.9 MB, free: 8.211 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.007935, allocations: 11.94 kB / 332.9 MB, free: 8.199 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000275/0.00821, allocations: 234.5 kB / 333.1 MB, free: 7.965 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.009243, allocations: 1.103 MB / 334.2 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002484/0.009492, allocations: 163.1 kB / 334.4 MB, free: 6.629 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.009657, allocations: 120.7 kB / 334.5 MB, free: 6.508 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.009683, allocations: 4 kB / 334.5 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.0097, allocations: 34.56 kB / 334.5 MB, free: 6.461 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.182e-06/0.009701, allocations: 0 / 334.5 MB, free: 6.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003243/0.01003, allocations: 236.4 kB / 334.7 MB, free: 6.227 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.741e-05/0.01005, allocations: 55.41 kB / 334.8 MB, free: 6.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.01026, allocations: 301.8 kB / 335.1 MB, free: 5.855 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.01028, allocations: 33.7 kB / 335.1 MB, free: 5.816 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.974e-05/0.01037, allocations: 208.4 kB / 335.3 MB, free: 5.609 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.339e-05/0.0104, allocations: 67.41 kB / 335.4 MB, free: 5.543 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.284e-05/0.01045, allocations: 45.7 kB / 335.4 MB, free: 5.492 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.958e-05/0.01053, allocations: 334.8 kB / 335.8 MB, free: 5.156 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.798e-05/0.01062, allocations: 71.95 kB / 335.8 MB, free: 5.086 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.01073, allocations: 131.7 kB / 336 MB, free: 4.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.01088, allocations: 166.9 kB / 336.1 MB, free: 4.742 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01088, allocations: 4 kB / 336.1 MB, free: 4.738 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000238/0.01112, allocations: 233.2 kB / 336.4 MB, free: 4.504 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.01113, allocations: 16.17 kB / 336.4 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.01114, allocations: 8 kB / 336.4 MB, free: 4.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.01115, allocations: 3.938 kB / 336.4 MB, free: 4.477 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.739e-05/0.01125, allocations: 43.92 kB / 336.4 MB, free: 4.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.01125, allocations: 4 kB / 336.4 MB, free: 4.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.01143, allocations: 67.77 kB / 336.5 MB, free: 4.363 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.01144, allocations: 8 kB / 336.5 MB, free: 4.355 MB / 298.7 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.0001005/0.01154, allocations: 161.7 kB / 336.7 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.96e-05/0.01157, allocations: 23.86 kB / 336.7 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002258/0.0118, allocations: 191.7 kB / 336.9 MB, free: 3.977 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.0118, allocations: 7.938 kB / 336.9 MB, free: 3.969 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.01181, allocations: 3.984 kB / 336.9 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-06/0.01181, allocations: 0 / 336.9 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004411/0.01225, allocations: 0.5068 MB / 337.4 MB, free: 3.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.01225, allocations: 4 kB / 337.4 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.864e-05/0.01234, allocations: 31.92 kB / 337.4 MB, free: 3.379 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.01234, allocations: 8.031 kB / 337.4 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.01236, allocations: 4 kB / 337.4 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.01236, allocations: 0 / 337.4 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.01236, allocations: 7.984 kB / 337.4 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003101/0.01267, allocations: 375.4 kB / 337.8 MB, free: 2.977 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.458e-05/0.0127, allocations: 35.67 kB / 337.9 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.01273, allocations: 4 kB / 337.9 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.01291, allocations: 55.98 kB / 337.9 MB, free: 2.883 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.01302, allocations: 79.86 kB / 338 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.01303, allocations: 8 kB / 338 MB, free: 2.797 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001396/0.01317, allocations: 217.2 kB / 338.2 MB, free: 2.582 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01317, allocations: 0 / 338.2 MB, free: 2.582 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002199/0.01339, allocations: 83.78 kB / 338.3 MB, free: 2.5 MB / 298.7 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.0001097/0.0135, allocations: 107.2 kB / 338.4 MB, free: 2.383 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002269/0.01373, allocations: 180 kB / 338.6 MB, free: 2.207 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.01373, allocations: 0 / 338.6 MB, free: 2.207 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.01384, allocations: 103.9 kB / 338.7 MB, free: 2.105 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.01408, allocations: 44.36 kB / 338.7 MB, free: 2.062 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007868/0.01487, allocations: 0.6815 MB / 339.4 MB, free: 1.344 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001046/0.01497, allocations: 172.8 kB / 339.6 MB, free: 1.148 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.083e-05/0.01504, allocations: 28.5 kB / 339.6 MB, free: 1.121 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01505, allocations: 0 / 339.6 MB, free: 1.121 MB / 298.7 MB Notification: Performance of Templates: time 0.004035/0.01908, allocations: 4.287 MB / 343.9 MB, free: 12.85 MB / 314.7 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: 4.824134428054094]