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.001568/0.001568, allocations: 116.8 kB / 19.17 MB, free: 3.895 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.001366/0.001366, allocations: 214.6 kB / 22.13 MB, free: 0.9414 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.48/1.48, allocations: 230.4 MB / 255.4 MB, free: 15.01 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.001913/0.001913, allocations: 63.89 kB / 374.7 MB, free: 9.762 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1105, allocations: 53.31 MB / 428 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004587/0.1151, allocations: 2.999 MB / 431 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00147/0.1166, allocations: 0.7401 MB / 431.8 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.1168, allocations: 4 kB / 431.8 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002274/0.117, allocations: 67.36 kB / 431.9 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002845/0.1173, allocations: 111.1 kB / 432 MB, free: 424 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003555/0.1176, allocations: 107.8 kB / 432.1 MB, free: 316 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2259/0.3435, allocations: 402.6 kB / 432.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004043/0.3439, allocations: 146.2 kB / 432.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002984/0.3442, allocations: 165.6 kB / 432.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002943/0.3445, allocations: 181.8 kB / 432.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.239e-05/0.3446, allocations: 39.59 kB / 433 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001716/0.3448, allocations: 56.77 kB / 433 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.3449, allocations: 109.2 kB / 433.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002124/0.3452, allocations: 204.8 kB / 433.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006087/0.3458, allocations: 0.496 MB / 433.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.3458, allocations: 0 / 433.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3458, allocations: 1 kB / 433.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.3458, allocations: 0 / 433.8 MB, free: 8.004 MB / 350.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.001561/0.3473, allocations: 0.7979 MB / 434.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.3474, allocations: 10.25 kB / 434.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.102e-05/0.3475, allocations: 43.84 kB / 434.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004347/0.3479, allocations: 353 kB / 435 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.113e-05/0.3479, allocations: 24.62 kB / 435.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/0.348, allocations: 33.47 kB / 435.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005354/0.3485, allocations: 345.1 kB / 435.4 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.3485, allocations: 3.938 kB / 435.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.3486, allocations: 13.69 kB / 435.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.3486, allocations: 7.562 kB / 435.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003899/0.349, allocations: 238.8 kB / 435.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.3507, allocations: 1.298 MB / 437 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.3511, allocations: 168.1 kB / 437.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/0.3513, allocations: 117.9 kB / 437.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.294e-05/0.3514, allocations: 6.953 kB / 437.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.3514, allocations: 35.5 kB / 437.3 MB, free: 6.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.292e-06/0.3514, allocations: 1.125 kB / 437.3 MB, free: 6.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004901/0.3519, allocations: 233.3 kB / 437.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.559e-05/0.3519, allocations: 57.69 kB / 437.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000366/0.3523, allocations: 313.7 kB / 437.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.3523, allocations: 30.23 kB / 437.9 MB, free: 6.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.3524, allocations: 215 kB / 438.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.137e-05/0.3525, allocations: 55.84 kB / 438.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.1e-05/0.3525, allocations: 48.3 kB / 438.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.592e-05/0.3526, allocations: 334.9 kB / 438.6 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.3528, allocations: 74.08 kB / 438.6 MB, free: 5.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.3529, allocations: 135.3 kB / 438.8 MB, free: 5.668 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.3531, allocations: 171.2 kB / 438.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3531, allocations: 0 / 438.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000379/0.3535, allocations: 241.1 kB / 439.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.3535, allocations: 10.2 kB / 439.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3535, allocations: 2.188 kB / 439.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.3535, allocations: 3.25 kB / 439.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.3537, allocations: 52.39 kB / 439.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.3537, allocations: 4.016 kB / 439.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004045/0.3541, allocations: 70.45 kB / 439.3 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.351e-05/0.3542, allocations: 18.72 kB / 439.3 MB, free: 5.449 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.0001361/0.3543, allocations: 154.5 kB / 439.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.639e-05/0.3544, allocations: 28.33 kB / 439.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000395/0.3548, allocations: 206.2 kB / 439.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3548, allocations: 3.562 kB / 439.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3548, allocations: 3.375 kB / 439.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.3548, allocations: 1.266 kB / 439.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007717/0.3556, allocations: 0.6275 MB / 440.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3556, allocations: 0 / 440.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.3557, allocations: 27.94 kB / 440.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3557, allocations: 1.281 kB / 440.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.3557, allocations: 10.92 kB / 440.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.3557, allocations: 1.672 kB / 440.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3557, allocations: 0 / 440.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000477/0.3562, allocations: 381.4 kB / 440.8 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.506e-05/0.3563, allocations: 112.1 kB / 440.9 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.833e-05/0.3563, allocations: 1.125 kB / 440.9 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004181/0.3567, allocations: 59.36 kB / 440.9 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.3569, allocations: 73.16 kB / 441 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-05/0.357, allocations: 10.59 kB / 441 MB, free: 4.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002307/0.3572, allocations: 232.1 kB / 441.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3572, allocations: 0 / 441.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003809/0.3576, allocations: 88.53 kB / 441.3 MB, free: 4.227 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.0001427/0.3577, allocations: 115.9 kB / 441.4 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003764/0.3581, allocations: 174.8 kB / 441.6 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3581, allocations: 0 / 441.6 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001804/0.3583, allocations: 102.2 kB / 441.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004356/0.3587, allocations: 58.88 kB / 441.8 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.3602, allocations: 0.753 MB / 442.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.3604, allocations: 0.7745 MB / 443.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.3605, allocations: 29 kB / 443.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3605, allocations: 1.281 kB / 443.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of Templates: time 0.008744/0.3693, allocations: 4.351 MB / 447.7 MB, free: 2.469 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.445830790093169]