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.00146/0.00146, allocations: 117.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001774/0.001775, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 63.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.28, allocations: 50.54 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005542/0.2855, allocations: 4.019 MB / 413.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003147/0.2887, allocations: 2.072 MB / 415.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002956/0.289, allocations: 15.94 kB / 415.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001201/0.2903, allocations: 0.5798 MB / 415.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006644/0.291, allocations: 398 kB / 416.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005994/0.2916, allocations: 290.9 kB / 416.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009722/0.2926, allocations: 0.9859 MB / 417.6 MB, free: 9.219 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004715/0.293, allocations: 356.5 kB / 417.9 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004023/0.2935, allocations: 390.7 kB / 418.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005665/0.294, allocations: 494.3 kB / 418.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.2941, allocations: 80 kB / 418.9 MB, free: 7.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002322/0.2944, allocations: 135.9 kB / 419 MB, free: 7.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003364/0.2947, allocations: 486.6 kB / 419.5 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004963/0.2952, allocations: 0.6329 MB / 420.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001492/0.2967, allocations: 1.757 MB / 421.9 MB, free: 4.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.2967, allocations: 0 / 421.9 MB, free: 4.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2968, allocations: 0 / 421.9 MB, free: 4.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.57e-05/0.2968, allocations: 0 / 421.9 MB, free: 4.91 MB / 334.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.00261/0.2994, allocations: 1.821 MB / 423.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.2994, allocations: 16.03 kB / 423.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002487/0.2997, allocations: 159 kB / 423.9 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001692/0.3014, allocations: 1.181 MB / 425 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.3015, allocations: 92.97 kB / 425.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.7e-05/0.3016, allocations: 51.94 kB / 425.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.3027, allocations: 0.6635 MB / 425.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.3027, allocations: 0 / 425.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.55e-05/0.3028, allocations: 20 kB / 425.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.3028, allocations: 15.94 kB / 425.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007579/0.3036, allocations: 431.7 kB / 426.3 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003931/0.3075, allocations: 2.871 MB / 429.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009553/0.3085, allocations: 422.5 kB / 429.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006132/0.3091, allocations: 316.6 kB / 429.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.3091, allocations: 4 kB / 429.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.3092, allocations: 46.5 kB / 429.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.583e-06/0.3092, allocations: 0 / 429.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001749/0.311, allocations: 0.7676 MB / 430.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.3111, allocations: 269 kB / 431 MB, free: 11.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002566/0.3137, allocations: 2.235 MB / 433.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.623e-05/0.3137, allocations: 33.7 kB / 433.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005649/0.3143, allocations: 0.6545 MB / 433.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.315e-05/0.3144, allocations: 98.56 kB / 434 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.3145, allocations: 81.97 kB / 434.1 MB, free: 8.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.3147, allocations: 321.9 kB / 434.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003298/0.315, allocations: 160.6 kB / 434.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.3154, allocations: 303.6 kB / 434.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006586/0.3161, allocations: 393 kB / 435.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.3161, allocations: 4 kB / 435.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001283/0.3174, allocations: 0.6443 MB / 435.9 MB, free: 6.387 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.3174, allocations: 4 kB / 435.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.709e-06/0.3174, allocations: 7.938 kB / 435.9 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000276/0.3177, allocations: 60.81 kB / 435.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/0.3181, allocations: 96 kB / 436 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001678/0.3198, allocations: 1.767 MB / 437.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004088/0.3202, allocations: 59.5 kB / 437.9 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.3203, allocations: 20.03 kB / 437.9 MB, free: 4.238 MB / 350.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.0005403/0.3208, allocations: 489.5 kB / 438.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001802/0.321, allocations: 138.3 kB / 438.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002324/0.3212, allocations: 165.5 kB / 438.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3212, allocations: 0 / 438.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3212, allocations: 4 kB / 438.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3213, allocations: 0 / 438.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002466/0.3237, allocations: 1.661 MB / 440.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3237, allocations: 128 / 440.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003316/0.3241, allocations: 75.89 kB / 440.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001667/0.3243, allocations: 56.89 kB / 440.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.3243, allocations: 11.98 kB / 440.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001564/0.3259, allocations: 1.72 MB / 442.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.3259, allocations: 7.969 kB / 442.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.3273, allocations: 0.7936 MB / 443 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004531/0.3278, allocations: 331.2 kB / 443.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.3279, allocations: 8 kB / 443.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00044/0.3283, allocations: 51.95 kB / 443.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.155e-05/0.3284, allocations: 31.95 kB / 443.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.243e-05/0.3285, allocations: 8 kB / 443.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001899/0.3304, allocations: 1.604 MB / 445 MB, free: 12.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3304, allocations: 0 / 445 MB, free: 12.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000708/0.3311, allocations: 207.6 kB / 445.2 MB, free: 12.63 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.001119/0.3322, allocations: 481.7 kB / 445.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.3333, allocations: 0.4944 MB / 446.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3333, allocations: 4 kB / 446.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005167/0.3338, allocations: 315.1 kB / 446.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008582/0.3347, allocations: 211 kB / 446.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003914/0.3386, allocations: 2.632 MB / 449.3 MB, free: 8.609 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009802/0.3396, allocations: 1.257 MB / 450.6 MB, free: 7.324 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000472/0.3401, allocations: 215.8 kB / 450.8 MB, free: 7.109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.3403, allocations: 75.42 kB / 450.9 MB, free: 7.035 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3403, allocations: 0 / 450.9 MB, free: 7.035 MB / 366.1 MB Notification: Performance of Templates: time 0.02505/0.3653, allocations: 14.16 MB / 465 MB, free: 8.965 MB / 382.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 -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches