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.001539/0.001539, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001624/0.001624, allocations: 207.9 kB / 19.25 MB, free: 3.898 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.475/1.475, allocations: 227.7 MB / 247.7 MB, free: 10.31 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.003372/0.003372, allocations: 64.72 kB / 307.9 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1339, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006768/0.1407, allocations: 4.014 MB / 362.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003972/0.1447, allocations: 2.072 MB / 364.5 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005088/0.1452, allocations: 12 kB / 364.5 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001594/0.1469, allocations: 0.5953 MB / 365.1 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001016/0.1479, allocations: 382.1 kB / 365.5 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008228/0.1488, allocations: 283.5 kB / 365.8 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001413/0.1502, allocations: 0.9815 MB / 366.8 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006352/0.1508, allocations: 360.5 kB / 367.1 MB, free: 5.215 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006039/0.1515, allocations: 390.6 kB / 367.5 MB, free: 4.832 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000787/0.1523, allocations: 494.2 kB / 368 MB, free: 4.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001885/0.1525, allocations: 80 kB / 368.1 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003647/0.1528, allocations: 140 kB / 368.2 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000456/0.1533, allocations: 470.7 kB / 368.6 MB, free: 3.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008748/0.1542, allocations: 0.6329 MB / 369.3 MB, free: 3.035 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001906/0.1561, allocations: 1.736 MB / 371 MB, free: 1.293 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1561, allocations: 11.94 kB / 371 MB, free: 1.281 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1561, allocations: 0 / 371 MB, free: 1.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.139e-05/0.1562, allocations: 0 / 371 MB, free: 1.281 MB / 302.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.1713/0.3275, allocations: 1.812 MB / 372.8 MB, free: 19.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.3276, allocations: 9.859 kB / 372.9 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000311/0.3279, allocations: 159.6 kB / 373 MB, free: 19.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.3297, allocations: 1.169 MB / 374.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00033/0.33, allocations: 136.5 kB / 374.3 MB, free: 18.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.238e-05/0.3301, allocations: 46.38 kB / 374.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.3313, allocations: 0.6765 MB / 375 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.3314, allocations: 3.938 kB / 375 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.444e-05/0.3314, allocations: 22.34 kB / 375.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.841e-05/0.3314, allocations: 15.69 kB / 375.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009049/0.3323, allocations: 446.7 kB / 375.5 MB, free: 18.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004405/0.3368, allocations: 2.905 MB / 378.4 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.3379, allocations: 451.6 kB / 378.9 MB, free: 16.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006803/0.3386, allocations: 318.7 kB / 379.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.3386, allocations: 7.969 kB / 379.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.3386, allocations: 38.2 kB / 379.2 MB, free: 16.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.364e-06/0.3386, allocations: 0 / 379.2 MB, free: 16.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002175/0.3408, allocations: 0.7996 MB / 380 MB, free: 16.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.3409, allocations: 262.3 kB / 380.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002957/0.3438, allocations: 2.242 MB / 382.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.228e-05/0.3439, allocations: 36.61 kB / 382.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004613/0.3444, allocations: 0.6368 MB / 383.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.696e-05/0.3445, allocations: 112.9 kB / 383.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.3446, allocations: 77.52 kB / 383.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.174e-05/0.3447, allocations: 322.5 kB / 383.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004273/0.3451, allocations: 171.6 kB / 383.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004711/0.3456, allocations: 314.4 kB / 384.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007786/0.3464, allocations: 421.7 kB / 384.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.3464, allocations: 0 / 384.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001605/0.348, allocations: 0.6621 MB / 385.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.3481, allocations: 5.938 kB / 385.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.3481, allocations: 4.016 kB / 385.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000302/0.3484, allocations: 70.23 kB / 385.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000414/0.3488, allocations: 101.3 kB / 385.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/0.3502, allocations: 1.766 MB / 387.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006639/0.3509, allocations: 61.39 kB / 387.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/0.3509, allocations: 15.31 kB / 387.2 MB, free: 11.67 MB / 302.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.0006428/0.3515, allocations: 491.5 kB / 387.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002011/0.3518, allocations: 134.7 kB / 387.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002056/0.352, allocations: 165.2 kB / 388 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-06/0.352, allocations: 4.094 kB / 388 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.352, allocations: 3.609 kB / 388 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.352, allocations: 5.203 kB / 388 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002767/0.3548, allocations: 1.686 MB / 389.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.3548, allocations: 1.562 kB / 389.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003642/0.3552, allocations: 73.08 kB / 389.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00019/0.3554, allocations: 60.31 kB / 389.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.3554, allocations: 8.656 kB / 389.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.3566, allocations: 1.734 MB / 391.6 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3566, allocations: 3.938 kB / 391.6 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001698/0.3583, allocations: 0.8277 MB / 392.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005022/0.3588, allocations: 329.6 kB / 392.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.3589, allocations: 16.69 kB / 392.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004998/0.3594, allocations: 49.88 kB / 392.8 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.943e-05/0.3596, allocations: 33.61 kB / 392.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-05/0.3596, allocations: 11.66 kB / 392.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002022/0.3616, allocations: 1.607 MB / 394.5 MB, free: 7.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3616, allocations: 0 / 394.5 MB, free: 7.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008242/0.3625, allocations: 210.6 kB / 394.7 MB, free: 7.301 MB / 302.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.001653/0.3641, allocations: 462.7 kB / 395.1 MB, free: 7.109 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.3655, allocations: 0.5563 MB / 395.7 MB, free: 6.793 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.3655, allocations: 5.438 kB / 395.7 MB, free: 6.789 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005531/0.366, allocations: 313.9 kB / 396 MB, free: 6.586 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.3672, allocations: 212.7 kB / 396.2 MB, free: 6.469 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003589/0.3708, allocations: 2.738 MB / 398.9 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005563/0.3714, allocations: 1.249 MB / 400.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.3716, allocations: 75.42 kB / 400.3 MB, free: 3.449 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3716, allocations: 0 / 400.3 MB, free: 3.449 MB / 302.1 MB Notification: Performance of Templates: time 0.03135/0.403, allocations: 21 MB / 421.3 MB, free: 14.49 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/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