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.001613/0.001613, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002101/0.002101, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 54.5 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.09544, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005058/0.1005, allocations: 4.018 MB / 362.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002916/0.1035, allocations: 2.072 MB / 365 MB, free: 7.223 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002586/0.1037, allocations: 15.94 kB / 365 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.1049, allocations: 0.5915 MB / 365.6 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000644/0.1056, allocations: 386 kB / 366 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005962/0.1062, allocations: 290.7 kB / 366.3 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.1072, allocations: 0.9859 MB / 367.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004555/0.1077, allocations: 352.4 kB / 367.6 MB, free: 4.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003654/0.1081, allocations: 386.8 kB / 368 MB, free: 4.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004851/0.1086, allocations: 498.3 kB / 368.4 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.672e-05/0.1087, allocations: 76 kB / 368.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002235/0.1089, allocations: 147.9 kB / 368.7 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003045/0.1092, allocations: 466.7 kB / 369.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004965/0.1097, allocations: 0.6329 MB / 369.8 MB, free: 2.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001318/0.1111, allocations: 1.76 MB / 371.5 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1111, allocations: 0 / 371.5 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1111, allocations: 0 / 371.5 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.1111, allocations: 0 / 371.5 MB, free: 0.6641 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.1535/0.2646, allocations: 1.821 MB / 373.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/0.2647, allocations: 11.09 kB / 373.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003396/0.265, allocations: 159 kB / 373.5 MB, free: 19.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001977/0.267, allocations: 1.181 MB / 374.7 MB, free: 19.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.675e-05/0.2671, allocations: 99.41 kB / 374.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.866e-05/0.2672, allocations: 47.47 kB / 374.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.2683, allocations: 0.6605 MB / 375.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.2684, allocations: 8.375 kB / 375.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-05/0.2684, allocations: 22.03 kB / 375.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.2684, allocations: 12.91 kB / 375.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007639/0.2692, allocations: 437 kB / 376 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004096/0.2733, allocations: 2.867 MB / 378.8 MB, free: 16.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009262/0.2743, allocations: 427.9 kB / 379.2 MB, free: 16.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005967/0.2749, allocations: 316.5 kB / 379.5 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.2749, allocations: 3.156 kB / 379.6 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.2749, allocations: 39.06 kB / 379.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.184e-06/0.275, allocations: 1.781 kB / 379.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001854/0.2768, allocations: 0.7641 MB / 380.4 MB, free: 16.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/0.2769, allocations: 262.9 kB / 380.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003056/0.28, allocations: 2.247 MB / 382.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.28, allocations: 39.08 kB / 382.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000529/0.2806, allocations: 0.6355 MB / 383.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.155e-05/0.2806, allocations: 109.4 kB / 383.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.2808, allocations: 79.92 kB / 383.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.76e-05/0.2809, allocations: 323.4 kB / 384 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.2812, allocations: 160.1 kB / 384.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004274/0.2817, allocations: 300.3 kB / 384.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006316/0.2823, allocations: 394 kB / 384.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.2823, allocations: 5.094 kB / 384.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001326/0.2837, allocations: 0.6401 MB / 385.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.2837, allocations: 5.984 kB / 385.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.016e-06/0.2837, allocations: 3.125 kB / 385.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003075/0.284, allocations: 66.7 kB / 385.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003998/0.2844, allocations: 90.91 kB / 385.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/0.2859, allocations: 1.765 MB / 387.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000525/0.2865, allocations: 64.03 kB / 387.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.2865, allocations: 15 kB / 387.5 MB, free: 11.83 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.000593/0.2871, allocations: 489.1 kB / 388 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.2873, allocations: 139.5 kB / 388.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002069/0.2875, allocations: 166.1 kB / 388.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.2875, allocations: 2.469 kB / 388.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2875, allocations: 4.812 kB / 388.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.2876, allocations: 13.8 kB / 388.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002904/0.2905, allocations: 1.651 MB / 390 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2905, allocations: 0 / 390 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003179/0.2908, allocations: 68.05 kB / 390 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001681/0.291, allocations: 59.41 kB / 390.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.291, allocations: 7.891 kB / 390.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/0.2922, allocations: 1.723 MB / 391.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.2922, allocations: 9.266 kB / 391.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.2935, allocations: 0.7978 MB / 392.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005931/0.2941, allocations: 325.7 kB / 392.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.2943, allocations: 20.06 kB / 393 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004556/0.2947, allocations: 43.45 kB / 393 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.869e-05/0.2948, allocations: 28.33 kB / 393 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.409e-05/0.2949, allocations: 12.25 kB / 393 MB, free: 8.242 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002074/0.2969, allocations: 1.611 MB / 394.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.297, allocations: 4 kB / 394.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008076/0.2978, allocations: 203 kB / 394.9 MB, free: 7.457 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.001054/0.2988, allocations: 465.5 kB / 395.3 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.2999, allocations: 0.5114 MB / 395.8 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.2999, allocations: 1.031 kB / 395.8 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004995/0.3004, allocations: 304.6 kB / 396.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009461/0.3014, allocations: 205.5 kB / 396.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.3047, allocations: 2.639 MB / 399 MB, free: 5.035 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006105/0.3053, allocations: 1.264 MB / 400.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004296/0.3057, allocations: 223.8 kB / 400.4 MB, free: 3.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000173/0.3059, allocations: 67.42 kB / 400.5 MB, free: 3.453 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3059, allocations: 4 kB / 400.5 MB, free: 3.449 MB / 302.1 MB Notification: Performance of Templates: time 0.02533/0.3313, allocations: 13.98 MB / 414.5 MB, free: 5.566 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 gbode -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