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/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 trunk/package.mo", uses=false) 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.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/ModelicaServices trunk/package.mo): time 0.001215/0.001215, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 64.39 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1143, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.007744/0.1221, allocations: 4.01 MB / 362.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004759/0.1269, allocations: 2.072 MB / 365 MB, free: 7.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005869/0.1276, allocations: 15.94 kB / 365 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001833/0.1295, allocations: 0.5953 MB / 365.6 MB, free: 6.637 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001146/0.1306, allocations: 382.1 kB / 366 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.1317, allocations: 302.7 kB / 366.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001578/0.1333, allocations: 0.9897 MB / 367.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000575/0.1338, allocations: 348.5 kB / 367.6 MB, free: 4.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004947/0.1344, allocations: 386.8 kB / 368 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005606/0.1349, allocations: 498.2 kB / 368.5 MB, free: 3.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.135, allocations: 80 kB / 368.5 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002903/0.1353, allocations: 136 kB / 368.7 MB, free: 3.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004237/0.1358, allocations: 478.6 kB / 369.1 MB, free: 3.078 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006233/0.1364, allocations: 0.6251 MB / 369.8 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001705/0.1381, allocations: 1.76 MB / 371.5 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.013e-05/0.1381, allocations: 4 kB / 371.5 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1381, allocations: 0 / 371.5 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.865e-05/0.1382, allocations: 0 / 371.5 MB, free: 0.6797 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.1651/0.3033, allocations: 1.818 MB / 373.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3034, allocations: 9.562 kB / 373.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004154/0.3038, allocations: 158.8 kB / 373.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002511/0.3063, allocations: 1.176 MB / 374.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.3064, allocations: 95 kB / 374.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.3066, allocations: 49.92 kB / 374.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.3078, allocations: 0.6683 MB / 375.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.3079, allocations: 0 / 375.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.809e-05/0.3079, allocations: 23.81 kB / 375.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.28e-05/0.308, allocations: 14.78 kB / 375.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008564/0.3088, allocations: 431.1 kB / 376 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004363/0.3132, allocations: 2.872 MB / 378.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009508/0.3142, allocations: 428.9 kB / 379.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006014/0.3148, allocations: 313.4 kB / 379.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.3148, allocations: 3.484 kB / 379.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.3149, allocations: 38.59 kB / 379.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.465e-06/0.3149, allocations: 3.609 kB / 379.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001881/0.3168, allocations: 0.769 MB / 380.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.603e-05/0.3169, allocations: 266.9 kB / 380.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002966/0.3198, allocations: 2.242 MB / 382.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.3199, allocations: 33.23 kB / 382.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004573/0.3204, allocations: 0.6454 MB / 383.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.776e-05/0.3204, allocations: 107.2 kB / 383.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.3206, allocations: 80.48 kB / 383.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.324e-05/0.3206, allocations: 318.7 kB / 384 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003302/0.321, allocations: 165.2 kB / 384.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003778/0.3214, allocations: 295.7 kB / 384.5 MB, free: 9.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006594/0.322, allocations: 408.8 kB / 384.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.322, allocations: 1.188 kB / 384.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00133/0.3234, allocations: 0.6352 MB / 385.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.3234, allocations: 5.938 kB / 385.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3234, allocations: 2.188 kB / 385.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002937/0.3237, allocations: 70.09 kB / 385.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000383/0.3241, allocations: 94.72 kB / 385.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.3255, allocations: 1.768 MB / 387.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005888/0.3261, allocations: 52.78 kB / 387.5 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.3261, allocations: 12.16 kB / 387.5 MB, free: 6.855 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.0006947/0.3268, allocations: 491 kB / 388 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002124/0.3271, allocations: 132.8 kB / 388.1 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002388/0.3273, allocations: 169.1 kB / 388.3 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.3273, allocations: 7.406 kB / 388.3 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/0.3273, allocations: 2.062 kB / 388.3 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3273, allocations: 1.219 kB / 388.3 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003028/0.3304, allocations: 1.662 MB / 390 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3304, allocations: 3.25 kB / 390 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003197/0.3307, allocations: 76.56 kB / 390.1 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001713/0.3309, allocations: 56.45 kB / 390.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.3309, allocations: 9.703 kB / 390.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001127/0.3321, allocations: 1.724 MB / 391.8 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3321, allocations: 2.5 kB / 391.8 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.3336, allocations: 0.7926 MB / 392.6 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008277/0.3345, allocations: 332.2 kB / 393 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.3346, allocations: 7.875 kB / 393 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004793/0.3351, allocations: 44.8 kB / 393 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.3352, allocations: 32.64 kB / 393 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.3353, allocations: 11.78 kB / 393.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002499/0.3378, allocations: 1.61 MB / 394.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3378, allocations: 0 / 394.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001002/0.3388, allocations: 205.6 kB / 394.9 MB, free: 2.891 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.001041/0.3399, allocations: 463.8 kB / 395.3 MB, free: 2.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.341, allocations: 0.5117 MB / 395.8 MB, free: 2.461 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.341, allocations: 4.391 kB / 395.8 MB, free: 2.461 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006065/0.3417, allocations: 301.5 kB / 396.1 MB, free: 2.301 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/0.3429, allocations: 219.9 kB / 396.3 MB, free: 2.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003429/0.3463, allocations: 2.621 MB / 399 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000728/0.3471, allocations: 1.254 MB / 400.2 MB, free: 15.83 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005169/0.3476, allocations: 218.1 kB / 400.4 MB, free: 15.65 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000184/0.3478, allocations: 67.44 kB / 400.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3478, allocations: 0 / 400.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of Templates: time 0.02546/0.3733, allocations: 14 MB / 414.5 MB, free: 1.711 MB / 318.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches