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.00105/0.00105, allocations: 81.91 kB / 21.42 MB, free: 3.07 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.001057/0.001057, allocations: 169.2 kB / 24.82 MB, free: 9.273 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 1.007/1.007, allocations: 177 MB / 205.1 MB, free: 5.484 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.683e-06/1.683e-06, allocations: 0 / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.016e-05/2.184e-05, allocations: 2.312 kB / 273.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003462/0.003484, allocations: 2.961 MB / 276.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.004692, allocations: 0.7283 MB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.004862, allocations: 11.94 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.005065, allocations: 63.36 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002484/0.005313, allocations: 111.1 kB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003481/0.005661, allocations: 111.8 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00036/0.006021, allocations: 422.1 kB / 277.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002195/0.006241, allocations: 142.3 kB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002004/0.006441, allocations: 239.5 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.006671, allocations: 151.6 kB / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.704e-05/0.006718, allocations: 43.94 kB / 278.3 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.006825, allocations: 55.98 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.006946, allocations: 111.6 kB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.00705, allocations: 147.6 kB / 278.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003687/0.007418, allocations: 302.9 kB / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.007422, allocations: 0 / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.007423, allocations: 0 / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.007428, allocations: 0 / 278.9 MB, free: 11.65 MB / 266.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.0008942/0.008322, allocations: 0.7959 MB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.008363, allocations: 15.98 kB / 279.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.068e-05/0.008444, allocations: 64.7 kB / 279.7 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002817/0.008725, allocations: 275.4 kB / 280 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.008746, allocations: 25.03 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.952e-05/0.008785, allocations: 28.38 kB / 280.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002963/0.009082, allocations: 307 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.00909, allocations: 192 / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.009112, allocations: 16.38 kB / 280.4 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.00912, allocations: 11.94 kB / 280.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001188/0.009239, allocations: 88.45 kB / 280.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.01031, allocations: 1.166 MB / 281.6 MB, free: 8.719 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.01051, allocations: 122.9 kB / 281.8 MB, free: 8.586 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001149/0.01063, allocations: 67.66 kB / 281.8 MB, free: 8.516 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/0.01066, allocations: 8 kB / 281.8 MB, free: 8.508 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.01068, allocations: 37.38 kB / 281.9 MB, free: 8.461 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.483e-06/0.01069, allocations: 0 / 281.9 MB, free: 8.461 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002282/0.01091, allocations: 132.4 kB / 282 MB, free: 8.328 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.512e-05/0.01094, allocations: 55.34 kB / 282.1 MB, free: 8.262 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001862/0.01112, allocations: 324 kB / 282.4 MB, free: 7.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.01114, allocations: 29.7 kB / 282.4 MB, free: 7.895 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.01125, allocations: 263 kB / 282.7 MB, free: 7.629 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.317e-05/0.01129, allocations: 59.47 kB / 282.7 MB, free: 7.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.844e-05/0.01135, allocations: 51.34 kB / 282.8 MB, free: 7.512 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.01148, allocations: 0.504 MB / 283.3 MB, free: 6.996 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.247e-05/0.01152, allocations: 19.98 kB / 283.3 MB, free: 6.977 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.796e-05/0.0116, allocations: 113.1 kB / 283.4 MB, free: 6.828 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.01171, allocations: 152.1 kB / 283.6 MB, free: 6.645 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.01172, allocations: 0 / 283.6 MB, free: 6.645 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001851/0.0119, allocations: 169.2 kB / 283.7 MB, free: 6.473 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.01191, allocations: 8 kB / 283.7 MB, free: 6.465 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.01192, allocations: 256 / 283.7 MB, free: 6.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.01193, allocations: 11.98 kB / 283.7 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.01204, allocations: 55.84 kB / 283.8 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.516e-06/0.01204, allocations: 0 / 283.8 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.01218, allocations: 43.86 kB / 283.8 MB, free: 6.355 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.0122, allocations: 11.94 kB / 283.8 MB, free: 6.344 MB / 266.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 (energy.local_reset,pulseSeries.on2,pulseSeries.on1) * 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.0001131/0.01231, allocations: 172.5 kB / 284 MB, free: 6.164 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.089e-05/0.01235, allocations: 27.86 kB / 284 MB, free: 6.137 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001976/0.01255, allocations: 135.7 kB / 284.2 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.01255, allocations: 8 kB / 284.2 MB, free: 5.988 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.01255, allocations: 3.938 kB / 284.2 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.01256, allocations: 0 / 284.2 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004184/0.01297, allocations: 464.5 kB / 284.6 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.01298, allocations: 0 / 284.6 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.18e-05/0.01307, allocations: 27.98 kB / 284.7 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.01307, allocations: 3.938 kB / 284.7 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.01309, allocations: 15.94 kB / 284.7 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.01309, allocations: 0 / 284.7 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.01309, allocations: 32 / 284.7 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002401/0.01333, allocations: 307.8 kB / 285 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-05/0.01336, allocations: 27.78 kB / 285 MB, free: 5.094 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.086e-05/0.0134, allocations: 15.92 kB / 285 MB, free: 5.078 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.01354, allocations: 31.97 kB / 285.1 MB, free: 5.047 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.636e-05/0.01362, allocations: 43.92 kB / 285.1 MB, free: 5.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.01363, allocations: 4 kB / 285.1 MB, free: 5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001087/0.01374, allocations: 213.1 kB / 285.3 MB, free: 4.789 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01374, allocations: 4.031 kB / 285.3 MB, free: 4.785 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002511/0.01399, allocations: 83.78 kB / 285.4 MB, free: 4.703 MB / 266.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.0001311/0.01412, allocations: 107.2 kB / 285.5 MB, free: 4.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001595/0.01428, allocations: 98.25 kB / 285.6 MB, free: 4.492 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.01428, allocations: 0 / 285.6 MB, free: 4.492 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.831e-05/0.01434, allocations: 47.59 kB / 285.7 MB, free: 4.441 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.01463, allocations: 52.47 kB / 285.7 MB, free: 4.395 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009605/0.01559, allocations: 0.6067 MB / 286.3 MB, free: 3.758 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.726e-05/0.01564, allocations: 92.3 kB / 286.4 MB, free: 3.648 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.78e-05/0.01573, allocations: 30.27 kB / 286.4 MB, free: 3.617 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.01588, allocations: 122.2 kB / 286.5 MB, free: 3.496 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01588, allocations: 0 / 286.5 MB, free: 3.496 MB / 266.7 MB Notification: Performance of Templates: time 0.1073/0.1232, allocations: 4.631 MB / 291.2 MB, free: 25.85 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.062486872076988]