Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001008, allocations: 117.9 kB / 296.7 MB, free: 6.445 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009805/0.0009806, allocations: 51.91 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2103, allocations: 50.45 MB / 407 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004759/0.2151, allocations: 4.039 MB / 411.1 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00252/0.2177, allocations: 2.042 MB / 413.1 MB, free: 21.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.218, allocations: 11.94 kB / 413.1 MB, free: 21.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.2191, allocations: 0.5645 MB / 413.7 MB, free: 21.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004818/0.2196, allocations: 342.6 kB / 414 MB, free: 20.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005102/0.2201, allocations: 251.7 kB / 414.3 MB, free: 20.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006892/0.2208, allocations: 0.9397 MB / 415.2 MB, free: 19.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000354/0.2211, allocations: 312 kB / 415.5 MB, free: 19.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002714/0.2214, allocations: 342.7 kB / 415.9 MB, free: 18.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003489/0.2218, allocations: 474.2 kB / 416.3 MB, free: 18.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.608e-05/0.2219, allocations: 48 kB / 416.4 MB, free: 18.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002222/0.2221, allocations: 108 kB / 416.5 MB, free: 18.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.2223, allocations: 438.7 kB / 416.9 MB, free: 17.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003432/0.2227, allocations: 0.5822 MB / 417.5 MB, free: 17.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008887/0.2236, allocations: 1.697 MB / 419.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.2236, allocations: 3.984 kB / 419.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.2236, allocations: 0 / 419.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.2236, allocations: 4 kB / 419.2 MB, free: 15.59 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002612/0.2262, allocations: 1.814 MB / 421 MB, free: 13.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.2263, allocations: 12.02 kB / 421 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001975/0.2265, allocations: 159 kB / 421.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001403/0.2279, allocations: 1.173 MB / 422.3 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002776/0.2282, allocations: 144.8 kB / 422.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.245e-05/0.2283, allocations: 51.94 kB / 422.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008935/0.2292, allocations: 0.6673 MB / 423.2 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.2292, allocations: 3.938 kB / 423.2 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.445e-05/0.2292, allocations: 24 kB / 423.2 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.2292, allocations: 16 kB / 423.2 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006883/0.2299, allocations: 443.7 kB / 423.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003458/0.2334, allocations: 2.899 MB / 426.6 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009242/0.2344, allocations: 455.9 kB / 427 MB, free: 7.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005539/0.2349, allocations: 322.9 kB / 427.3 MB, free: 7.164 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.235, allocations: 3.984 kB / 427.3 MB, free: 7.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.235, allocations: 42.56 kB / 427.4 MB, free: 7.109 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.033e-06/0.235, allocations: 0 / 427.4 MB, free: 7.109 MB / 298.7 MB Notification: Performance of matching and sorting (n=30): time 0.001822/0.2368, allocations: 0.7987 MB / 428.2 MB, free: 6.281 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/0.2369, allocations: 265 kB / 428.4 MB, free: 5.961 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002146/0.2391, allocations: 2.235 MB / 430.7 MB, free: 3.715 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.993e-05/0.2391, allocations: 29.7 kB / 430.7 MB, free: 3.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003859/0.2395, allocations: 0.6507 MB / 431.4 MB, free: 3.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.648e-05/0.2396, allocations: 110.4 kB / 431.5 MB, free: 2.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.2397, allocations: 81.97 kB / 431.5 MB, free: 2.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.654e-05/0.2398, allocations: 325.8 kB / 431.9 MB, free: 2.496 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.2401, allocations: 172.6 kB / 432 MB, free: 2.328 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003903/0.2405, allocations: 316.6 kB / 432.3 MB, free: 1.965 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006505/0.2412, allocations: 412.7 kB / 432.7 MB, free: 1.531 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.2412, allocations: 4 kB / 432.8 MB, free: 1.527 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001283/0.2425, allocations: 0.6638 MB / 433.4 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.2425, allocations: 10.66 kB / 433.4 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.2426, allocations: 7.938 kB / 433.4 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002995/0.2429, allocations: 68.88 kB / 433.5 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000375/0.2433, allocations: 95.81 kB / 433.6 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.2448, allocations: 1.596 MB / 435.2 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006151/0.2454, allocations: 67.62 kB / 435.3 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.175e-05/0.2455, allocations: 15.98 kB / 435.3 MB, free: 14.86 MB / 314.7 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.0009783/0.2465, allocations: 482.1 kB / 435.7 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002757/0.2468, allocations: 138.2 kB / 435.9 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003095/0.2471, allocations: 161.6 kB / 436 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.8e-06/0.2471, allocations: 4 kB / 436 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.2471, allocations: 4 kB / 436 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.2471, allocations: 7.922 kB / 436.1 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003369/0.2505, allocations: 1.676 MB / 437.7 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.778e-06/0.2505, allocations: 12 kB / 437.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003562/0.2509, allocations: 67.94 kB / 437.8 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002083/0.2511, allocations: 56.81 kB / 437.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.2511, allocations: 8 kB / 437.9 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001679/0.2528, allocations: 1.564 MB / 439.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.2528, allocations: 7.969 kB / 439.4 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009694/0.2625, allocations: 6.349 MB / 445.8 MB, free: 3.793 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006829/0.2633, allocations: 335.2 kB / 446.1 MB, free: 3.445 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/0.2634, allocations: 12 kB / 446.1 MB, free: 3.434 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005336/0.264, allocations: 56.03 kB / 446.2 MB, free: 3.379 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.2641, allocations: 35.72 kB / 446.2 MB, free: 3.348 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.2641, allocations: 12 kB / 446.2 MB, free: 3.336 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002315/0.2665, allocations: 1.604 MB / 447.8 MB, free: 1.734 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2665, allocations: 0 / 447.8 MB, free: 1.734 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001105/0.2676, allocations: 311.6 kB / 448.1 MB, free: 1.43 MB / 314.7 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.001274/0.2689, allocations: 0.5575 MB / 448.7 MB, free: 1.082 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001333/0.2702, allocations: 0.5263 MB / 449.2 MB, free: 0.543 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.2702, allocations: 4 kB / 449.2 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006206/0.2709, allocations: 314.4 kB / 449.5 MB, free: 224 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.272, allocations: 197.4 kB / 449.7 MB, free: 24 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00546/0.2774, allocations: 3.413 MB / 453.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/0.2786, allocations: 1.271 MB / 454.4 MB, free: 11.24 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007285/0.2793, allocations: 223.8 kB / 454.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.2797, allocations: 75.42 kB / 454.7 MB, free: 10.94 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.2797, allocations: 0 / 454.7 MB, free: 10.94 MB / 330.7 MB Notification: Performance of Templates: time 0.02881/0.3085, allocations: 14.87 MB / 469.6 MB, free: 12.14 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches