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.001375/0.001375, allocations: 116.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001894/0.001894, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.4 MB, free: 9.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 60.22 kB / 306.4 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09977/0.101, allocations: 50.53 MB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006208/0.1073, allocations: 4.044 MB / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003369/0.1107, allocations: 2.042 MB / 363.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004538/0.1112, allocations: 11.94 kB / 363.1 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.1125, allocations: 0.5646 MB / 363.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008381/0.1134, allocations: 354.5 kB / 364 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007181/0.1141, allocations: 255.4 kB / 364.2 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001128/0.1152, allocations: 0.9859 MB / 365.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005009/0.1157, allocations: 352.5 kB / 365.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004742/0.1162, allocations: 386.7 kB / 365.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006102/0.1168, allocations: 0.4905 MB / 366.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.117, allocations: 80 kB / 366.5 MB, free: 4.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002812/0.1173, allocations: 140 kB / 366.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004177/0.1177, allocations: 474.7 kB / 367.1 MB, free: 4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007244/0.1184, allocations: 0.6329 MB / 367.7 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00172/0.1202, allocations: 1.736 MB / 369.5 MB, free: 1.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.1202, allocations: 4 kB / 369.5 MB, free: 1.617 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1202, allocations: 0 / 369.5 MB, free: 1.617 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.265e-05/0.1202, allocations: 0 / 369.5 MB, free: 1.617 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.1679/0.2881, allocations: 1.822 MB / 371.3 MB, free: 19.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.2882, allocations: 8.938 kB / 371.3 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002939/0.2885, allocations: 160.8 kB / 371.5 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001734/0.2903, allocations: 1.168 MB / 372.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000323/0.2906, allocations: 136.6 kB / 372.8 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.38e-05/0.2907, allocations: 46.72 kB / 372.8 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.2918, allocations: 0.674 MB / 373.5 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.2918, allocations: 5.031 kB / 373.5 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.095e-05/0.2919, allocations: 21.84 kB / 373.5 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.2919, allocations: 16 kB / 373.5 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007934/0.2927, allocations: 446.5 kB / 374 MB, free: 18.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003883/0.2966, allocations: 2.899 MB / 376.9 MB, free: 16.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.2977, allocations: 446.9 kB / 377.3 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006439/0.2983, allocations: 322.3 kB / 377.6 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.2984, allocations: 2.906 kB / 377.6 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.2984, allocations: 38.06 kB / 377.7 MB, free: 16.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.265e-06/0.2984, allocations: 6.484 kB / 377.7 MB, free: 16.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001861/0.3003, allocations: 0.7996 MB / 378.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.3003, allocations: 261.7 kB / 378.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002587/0.3029, allocations: 2.242 MB / 381 MB, free: 15.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.303, allocations: 32.95 kB / 381 MB, free: 15.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004268/0.3034, allocations: 0.6453 MB / 381.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.57e-05/0.3035, allocations: 104.4 kB / 381.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.3036, allocations: 81.39 kB / 381.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.266e-05/0.3036, allocations: 322.1 kB / 382.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003764/0.304, allocations: 170.5 kB / 382.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004288/0.3045, allocations: 315.4 kB / 382.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007147/0.3052, allocations: 413.6 kB / 383 MB, free: 13.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3052, allocations: 5.203 kB / 383 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001347/0.3065, allocations: 0.6676 MB / 383.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3066, allocations: 6.844 kB / 383.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3066, allocations: 1.75 kB / 383.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002638/0.3069, allocations: 66.52 kB / 383.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003819/0.3072, allocations: 97.52 kB / 383.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001226/0.3085, allocations: 1.773 MB / 385.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004403/0.3089, allocations: 63.84 kB / 385.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.309, allocations: 13.22 kB / 385.7 MB, free: 11.68 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.0005037/0.3095, allocations: 488.7 kB / 386.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.3096, allocations: 138.4 kB / 386.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001819/0.3098, allocations: 165.1 kB / 386.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.3098, allocations: 4.469 kB / 386.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3098, allocations: 0.8438 kB / 386.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3099, allocations: 4.828 kB / 386.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002539/0.3124, allocations: 1.686 MB / 388.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3124, allocations: 0.875 kB / 388.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003494/0.3128, allocations: 75.19 kB / 388.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000164/0.3129, allocations: 61.56 kB / 388.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.313, allocations: 7.062 kB / 388.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/0.3141, allocations: 1.725 MB / 390 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3141, allocations: 1.188 kB / 390 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.3156, allocations: 0.8289 MB / 390.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003733/0.316, allocations: 333.7 kB / 391.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001282/0.3162, allocations: 16.31 kB / 391.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/0.3166, allocations: 51.73 kB / 391.3 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.246e-05/0.3167, allocations: 32.31 kB / 391.3 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.3167, allocations: 12.02 kB / 391.3 MB, free: 8.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00183/0.3186, allocations: 1.61 MB / 392.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3186, allocations: 0 / 392.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007231/0.3193, allocations: 207.3 kB / 393.1 MB, free: 7.383 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.001005/0.3203, allocations: 466.7 kB / 393.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.3214, allocations: 0.5546 MB / 394.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3215, allocations: 5.344 kB / 394.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005075/0.322, allocations: 315.9 kB / 394.4 MB, free: 6.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008758/0.3229, allocations: 207.6 kB / 394.6 MB, free: 6.527 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003314/0.3262, allocations: 3.033 MB / 397.7 MB, free: 4.723 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006166/0.3268, allocations: 1.258 MB / 398.9 MB, free: 3.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004625/0.3273, allocations: 219.8 kB / 399.1 MB, free: 3.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001667/0.3275, allocations: 75.42 kB / 399.2 MB, free: 3.398 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3275, allocations: 3.938 kB / 399.2 MB, free: 3.395 MB / 302.1 MB Notification: Performance of Templates: time 0.02035/0.3478, allocations: 13.9 MB / 413.1 MB, free: 5.602 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 -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