Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001362/0.001362, allocations: 118.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 209.1 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.511/1.511, allocations: 230.4 MB / 250 MB, free: 9.047 MB / 206.1 MB 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.001877/0.001877, allocations: 59.84 kB / 367.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2941, allocations: 53.32 MB / 420.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006015/0.3001, allocations: 4.05 MB / 424.7 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003818/0.3039, allocations: 2.072 MB / 426.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003944/0.3043, allocations: 15.94 kB / 426.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.3058, allocations: 0.5913 MB / 427.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007357/0.3065, allocations: 398 kB / 427.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007061/0.3072, allocations: 286.1 kB / 428 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.3084, allocations: 0.9849 MB / 429 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004653/0.3089, allocations: 248.5 kB / 429.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004398/0.3093, allocations: 394.6 kB / 429.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006224/0.31, allocations: 0.5099 MB / 430.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.3101, allocations: 80 kB / 430.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002847/0.3104, allocations: 140 kB / 430.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004326/0.3108, allocations: 478.6 kB / 430.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006254/0.3114, allocations: 0.6251 MB / 431.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002132/0.3136, allocations: 1.778 MB / 433.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3136, allocations: 0 / 433.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3136, allocations: 0 / 433.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.3136, allocations: 0 / 433.2 MB, free: 11.7 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003224/0.3168, allocations: 1.872 MB / 435.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.3168, allocations: 8.031 kB / 435.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002584/0.3171, allocations: 171.9 kB / 435.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00188/0.319, allocations: 1.186 MB / 436.5 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.3191, allocations: 96.95 kB / 436.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.638e-05/0.3192, allocations: 59.83 kB / 436.6 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.3204, allocations: 0.6596 MB / 437.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.3204, allocations: 0 / 437.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.533e-05/0.3204, allocations: 20 kB / 437.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.3204, allocations: 12 kB / 437.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008373/0.3213, allocations: 439.7 kB / 437.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004568/0.3259, allocations: 2.872 MB / 440.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.3269, allocations: 398.5 kB / 441 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006769/0.3276, allocations: 288.7 kB / 441.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.3276, allocations: 4 kB / 441.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.528e-05/0.3276, allocations: 46.56 kB / 441.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.694e-06/0.3276, allocations: 0 / 441.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001911/0.3296, allocations: 0.7722 MB / 442.1 MB, free: 2.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001599/0.3297, allocations: 265 kB / 442.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003105/0.3328, allocations: 2.243 MB / 444.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.3329, allocations: 33.7 kB / 444.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006187/0.3335, allocations: 0.6512 MB / 445.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.3336, allocations: 111.1 kB / 445.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.3337, allocations: 85.95 kB / 445.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3339, allocations: 325.8 kB / 445.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003505/0.3342, allocations: 156.7 kB / 446 MB, free: 14.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.3347, allocations: 300.8 kB / 446.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007162/0.3354, allocations: 392.3 kB / 446.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3354, allocations: 0 / 446.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001402/0.3369, allocations: 0.6534 MB / 447.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.3369, allocations: 6.656 kB / 447.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.3369, allocations: 7.938 kB / 447.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003104/0.3372, allocations: 64.81 kB / 447.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.3376, allocations: 99.94 kB / 447.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.3395, allocations: 1.771 MB / 449.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004408/0.34, allocations: 55.66 kB / 449.3 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.34, allocations: 12 kB / 449.3 MB, free: 10.99 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.00066/0.3407, allocations: 493.6 kB / 449.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.3408, allocations: 139.1 kB / 449.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002245/0.3411, allocations: 165.5 kB / 450.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3411, allocations: 0 / 450.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3411, allocations: 4 kB / 450.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3411, allocations: 3.984 kB / 450.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.3439, allocations: 1.665 MB / 451.8 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3439, allocations: 0 / 451.8 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003592/0.3442, allocations: 63.95 kB / 451.8 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001922/0.3444, allocations: 60.94 kB / 451.9 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.818e-05/0.3444, allocations: 12.06 kB / 451.9 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001778/0.3462, allocations: 1.72 MB / 453.6 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.3462, allocations: 3.938 kB / 453.6 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.3478, allocations: 0.7983 MB / 454.4 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005254/0.3483, allocations: 344 kB / 454.8 MB, free: 5.266 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.3485, allocations: 12.08 kB / 454.8 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/0.3489, allocations: 47.95 kB / 454.8 MB, free: 5.207 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.349, allocations: 27.95 kB / 454.8 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-05/0.3491, allocations: 12 kB / 454.8 MB, free: 5.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003426/0.3525, allocations: 1.612 MB / 456.5 MB, free: 3.559 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3525, allocations: 0 / 456.5 MB, free: 3.559 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001226/0.3537, allocations: 203.7 kB / 456.7 MB, free: 3.359 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002469/0.3562, allocations: 468.5 kB / 457.1 MB, free: 3.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.3578, allocations: 494.3 kB / 457.6 MB, free: 2.574 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.3578, allocations: 0 / 457.6 MB, free: 2.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008356/0.3587, allocations: 307.1 kB / 457.9 MB, free: 2.262 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.3602, allocations: 212.9 kB / 458.1 MB, free: 2.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006203/0.3664, allocations: 2.679 MB / 460.8 MB, free: 15.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/0.3679, allocations: 1.253 MB / 462 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007248/0.3686, allocations: 215.8 kB / 462.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.3689, allocations: 71.44 kB / 462.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3689, allocations: 0 / 462.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of Templates: time 0.04173/0.4106, allocations: 14.28 MB / 476.6 MB, free: 15.61 MB / 398.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches