Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 115.5 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 189.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 47.09 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.1005, allocations: 49.44 MB / 349.6 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005699/0.1063, allocations: 3.999 MB / 353.6 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00296/0.1092, allocations: 1.874 MB / 355.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002744/0.1095, allocations: 15.94 kB / 355.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.1108, allocations: 0.5607 MB / 356 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005293/0.1113, allocations: 310.7 kB / 356.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005687/0.1119, allocations: 263.5 kB / 356.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009476/0.1129, allocations: 0.9858 MB / 357.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004599/0.1133, allocations: 360.5 kB / 357.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003566/0.1137, allocations: 386.7 kB / 358.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005039/0.1142, allocations: 0.4905 MB / 358.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.1143, allocations: 80 kB / 358.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002181/0.1146, allocations: 132 kB / 359 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000361/0.1149, allocations: 474.7 kB / 359.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005279/0.1155, allocations: 0.629 MB / 360.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.1169, allocations: 1.729 MB / 361.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1169, allocations: 3.984 kB / 361.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1169, allocations: 0 / 361.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.1169, allocations: 0 / 361.8 MB, free: 8.453 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.002641/0.1196, allocations: 1.81 MB / 363.6 MB, free: 6.586 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1196, allocations: 8.031 kB / 363.6 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002211/0.1198, allocations: 155.1 kB / 363.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.1214, allocations: 1.173 MB / 365 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003132/0.1217, allocations: 132.9 kB / 365.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.512e-05/0.1218, allocations: 51.94 kB / 365.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.123, allocations: 0.6752 MB / 365.8 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.123, allocations: 0 / 365.8 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.482e-05/0.123, allocations: 20 kB / 365.8 MB, free: 4.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.1231, allocations: 12 kB / 365.8 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008485/0.1239, allocations: 451.7 kB / 366.3 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004043/0.128, allocations: 2.894 MB / 369.2 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.1291, allocations: 452.8 kB / 369.6 MB, free: 376 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006765/0.1298, allocations: 324.7 kB / 369.9 MB, free: 48 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.1298, allocations: 4 kB / 369.9 MB, free: 44 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1721/0.3019, allocations: 42.55 kB / 370 MB, free: 25.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 6.412e-06/0.3019, allocations: 3.219 kB / 370 MB, free: 25.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002323/0.3042, allocations: 0.7933 MB / 370.8 MB, free: 25.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.3043, allocations: 262.7 kB / 371 MB, free: 25.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002803/0.3071, allocations: 2.232 MB / 373.3 MB, free: 24.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.2e-05/0.3072, allocations: 35.67 kB / 373.3 MB, free: 24.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004168/0.3076, allocations: 0.6347 MB / 373.9 MB, free: 24.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.163e-05/0.3077, allocations: 110.5 kB / 374 MB, free: 24.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.3078, allocations: 77.89 kB / 374.1 MB, free: 24.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.904e-05/0.3079, allocations: 323.1 kB / 374.4 MB, free: 23.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003931/0.3083, allocations: 169.8 kB / 374.6 MB, free: 23.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004482/0.3087, allocations: 318 kB / 374.9 MB, free: 23.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007356/0.3095, allocations: 418.1 kB / 375.3 MB, free: 23.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3095, allocations: 5.203 kB / 375.3 MB, free: 23.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001394/0.3109, allocations: 0.6637 MB / 376 MB, free: 23.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3109, allocations: 5.906 kB / 376 MB, free: 23.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3109, allocations: 2.594 kB / 376 MB, free: 23.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002736/0.3112, allocations: 70.62 kB / 376.1 MB, free: 23.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004111/0.3116, allocations: 92.08 kB / 376.2 MB, free: 23.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.313, allocations: 1.77 MB / 377.9 MB, free: 21.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004526/0.3135, allocations: 60.55 kB / 378 MB, free: 21.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.3135, allocations: 20 kB / 378 MB, free: 21.51 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.0005244/0.314, allocations: 494.9 kB / 378.5 MB, free: 21.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.3142, allocations: 137.8 kB / 378.6 MB, free: 21.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000194/0.3144, allocations: 166.3 kB / 378.8 MB, free: 21.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3144, allocations: 4.234 kB / 378.8 MB, free: 21.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3144, allocations: 1.688 kB / 378.8 MB, free: 21.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.3144, allocations: 1.453 kB / 378.8 MB, free: 21.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002561/0.317, allocations: 1.679 MB / 380.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.317, allocations: 1.062 kB / 380.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003734/0.3174, allocations: 78.41 kB / 380.6 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001727/0.3176, allocations: 61.2 kB / 380.6 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.3176, allocations: 9.469 kB / 380.6 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.3188, allocations: 1.726 MB / 382.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3188, allocations: 1.938 kB / 382.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.3203, allocations: 0.8287 MB / 383.2 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000395/0.3207, allocations: 327.8 kB / 383.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.3209, allocations: 9.141 kB / 383.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005056/0.3214, allocations: 48.12 kB / 383.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.863e-05/0.3215, allocations: 35.5 kB / 383.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/0.3215, allocations: 9.25 kB / 383.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001919/0.3235, allocations: 1.604 MB / 385.2 MB, free: 17.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3235, allocations: 0 / 385.2 MB, free: 17.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007256/0.3242, allocations: 206.2 kB / 385.4 MB, free: 17.5 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.001003/0.3252, allocations: 467.7 kB / 385.9 MB, free: 17.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.3264, allocations: 0.5442 MB / 386.4 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3264, allocations: 1.25 kB / 386.4 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005659/0.327, allocations: 330.6 kB / 386.7 MB, free: 16.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009479/0.328, allocations: 209.6 kB / 386.9 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003606/0.3316, allocations: 3.028 MB / 390 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000638/0.3322, allocations: 1.259 MB / 391.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004763/0.3327, allocations: 211.8 kB / 391.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/0.3329, allocations: 72.66 kB / 391.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3329, allocations: 0 / 391.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of Templates: time 0.02169/0.3546, allocations: 13.88 MB / 405.4 MB, free: 2.379 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches