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.001836/0.001836, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.002079/0.002079, allocations: 160.8 kB / 24.27 MB, free: 152 kB / 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.586/1.586, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 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 2.485e-06/2.485e-06, allocations: 0 / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.946e-05/4.195e-05, allocations: 2.312 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.008281/0.008323, allocations: 2.954 MB / 275.1 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002825/0.01115, allocations: 0.7361 MB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.01142, allocations: 11.94 kB / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003758/0.0118, allocations: 63.36 kB / 275.9 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004664/0.01226, allocations: 115 kB / 276.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005771/0.01284, allocations: 99.86 kB / 276.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008424/0.01368, allocations: 434.1 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004692/0.01415, allocations: 134.4 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000525/0.01468, allocations: 251.4 kB / 276.9 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004748/0.01515, allocations: 147.6 kB / 277.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.01527, allocations: 40 kB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002335/0.0155, allocations: 55.94 kB / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002938/0.0158, allocations: 111.6 kB / 277.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002902/0.01609, allocations: 143.7 kB / 277.4 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.01721, allocations: 0.4984 MB / 277.9 MB, free: 12.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.01722, allocations: 0 / 277.9 MB, free: 12.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.01722, allocations: 4 kB / 277.9 MB, free: 12.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.01723, allocations: 0 / 277.9 MB, free: 12.03 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.00268/0.01991, allocations: 0.8152 MB / 278.8 MB, free: 11.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.042e-05/0.01997, allocations: 11.98 kB / 278.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002256/0.02019, allocations: 68.7 kB / 278.8 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008922/0.02108, allocations: 299.3 kB / 279.1 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.459e-05/0.02113, allocations: 21.03 kB / 279.1 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.02123, allocations: 32.38 kB / 279.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.02239, allocations: 390.4 kB / 279.6 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/0.02242, allocations: 4.125 kB / 279.6 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.326e-05/0.02248, allocations: 16.38 kB / 279.6 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.797e-05/0.02251, allocations: 11.94 kB / 279.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007876/0.0233, allocations: 186.5 kB / 279.8 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003982/0.02728, allocations: 1.37 MB / 281.1 MB, free: 8.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006951/0.02797, allocations: 155 kB / 281.3 MB, free: 8.496 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004707/0.02844, allocations: 103.6 kB / 281.4 MB, free: 8.391 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.571e-05/0.02851, allocations: 4 kB / 281.4 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.76e-05/0.02858, allocations: 41.39 kB / 281.4 MB, free: 8.336 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 2.645e-06/0.02858, allocations: 0 / 281.4 MB, free: 8.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0008358/0.02942, allocations: 196.4 kB / 281.6 MB, free: 8.141 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.02949, allocations: 51.41 kB / 281.7 MB, free: 8.078 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007738/0.03026, allocations: 384.2 kB / 282.1 MB, free: 7.684 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.836e-05/0.03031, allocations: 29.7 kB / 282.1 MB, free: 7.648 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003189/0.03063, allocations: 271.1 kB / 282.3 MB, free: 7.379 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.03074, allocations: 59.48 kB / 282.4 MB, free: 7.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/0.03093, allocations: 59.36 kB / 282.5 MB, free: 7.254 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004539/0.03138, allocations: 0.5157 MB / 283 MB, free: 6.727 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.03156, allocations: 51.98 kB / 283 MB, free: 6.676 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002826/0.03184, allocations: 145.1 kB / 283.2 MB, free: 6.496 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004046/0.03225, allocations: 193 kB / 283.4 MB, free: 6.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.03225, allocations: 0 / 283.4 MB, free: 6.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004552/0.03271, allocations: 235.9 kB / 283.6 MB, free: 6.035 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.03273, allocations: 8 kB / 283.6 MB, free: 6.027 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.03274, allocations: 0 / 283.6 MB, free: 6.027 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.03276, allocations: 11.88 kB / 283.6 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.03298, allocations: 47.97 kB / 283.7 MB, free: 5.969 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.03299, allocations: 7.938 kB / 283.7 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003055/0.0333, allocations: 48.11 kB / 283.7 MB, free: 5.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.319e-05/0.03333, allocations: 8 kB / 283.7 MB, free: 5.906 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 (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.0002257/0.03356, allocations: 196.5 kB / 283.9 MB, free: 5.703 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.638e-05/0.03363, allocations: 31.84 kB / 283.9 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004475/0.03408, allocations: 167.8 kB / 284.1 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.03409, allocations: 3.938 kB / 284.1 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.03409, allocations: 4 kB / 284.1 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.0341, allocations: 0 / 284.1 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009651/0.03506, allocations: 0.5977 MB / 284.7 MB, free: 4.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.03506, allocations: 4.031 kB / 284.7 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.03524, allocations: 39.86 kB / 284.8 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.03524, allocations: 0 / 284.8 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.03526, allocations: 4 kB / 284.8 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.03526, allocations: 0 / 284.8 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.03526, allocations: 0 / 284.8 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005528/0.03581, allocations: 371.9 kB / 285.1 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.356e-05/0.03589, allocations: 35.72 kB / 285.2 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.901e-05/0.03594, allocations: 8 kB / 285.2 MB, free: 4.371 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003108/0.03625, allocations: 39.98 kB / 285.2 MB, free: 4.332 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002444/0.03649, allocations: 103.8 kB / 285.3 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.03651, allocations: 4 kB / 285.3 MB, free: 4.227 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002949/0.03681, allocations: 265 kB / 285.6 MB, free: 3.969 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.03681, allocations: 0 / 285.6 MB, free: 3.969 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003942/0.0372, allocations: 87.78 kB / 285.7 MB, free: 3.883 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.0002016/0.0374, allocations: 103.2 kB / 285.8 MB, free: 3.773 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003646/0.03777, allocations: 155.5 kB / 285.9 MB, free: 3.617 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.03777, allocations: 0 / 285.9 MB, free: 3.617 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.03792, allocations: 71.59 kB / 286 MB, free: 3.543 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004123/0.03834, allocations: 44.36 kB / 286 MB, free: 3.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.03976, allocations: 0.6269 MB / 286.6 MB, free: 2.844 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.03997, allocations: 172.8 kB / 286.8 MB, free: 2.652 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.04009, allocations: 26.28 kB / 286.8 MB, free: 2.629 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.04019, allocations: 36.48 kB / 286.9 MB, free: 2.594 MB / 266.7 MB Notification: Performance of SimCode: time 8.91e-07/0.04019, allocations: 0 / 286.9 MB, free: 2.594 MB / 266.7 MB Notification: Performance of Templates: time 0.01016/0.05035, allocations: 4.305 MB / 291.2 MB, free: 14.34 MB / 282.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","/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.203127220040187]