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.001428/0.001428, allocations: 106.2 kB / 16.92 MB, free: 6.145 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.00144/0.00144, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.368/1.368, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 43.03 kB / 300.6 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1161, allocations: 49.45 MB / 350 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005743/0.1219, allocations: 3.973 MB / 354 MB, free: 360 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003328/0.1252, allocations: 1.909 MB / 355.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005385/0.1258, allocations: 11.94 kB / 355.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.1272, allocations: 0.5915 MB / 356.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007738/0.128, allocations: 346.2 kB / 356.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007291/0.1288, allocations: 286.8 kB / 357.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001195/0.13, allocations: 0.9858 MB / 358.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005628/0.1306, allocations: 356.5 kB / 358.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005838/0.1312, allocations: 386.7 kB / 358.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007199/0.1319, allocations: 494.3 kB / 359.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001626/0.1321, allocations: 80 kB / 359.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003346/0.1324, allocations: 136 kB / 359.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003918/0.1328, allocations: 470.7 kB / 360 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007445/0.1336, allocations: 0.6251 MB / 360.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.1352, allocations: 1.729 MB / 362.4 MB, free: 7.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1352, allocations: 3.984 kB / 362.4 MB, free: 7.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1352, allocations: 0 / 362.4 MB, free: 7.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.716e-05/0.1353, allocations: 0 / 362.4 MB, free: 7.961 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.002768/0.138, allocations: 1.814 MB / 364.2 MB, free: 6.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.1381, allocations: 8.031 kB / 364.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002237/0.1383, allocations: 159 kB / 364.4 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/0.1399, allocations: 1.169 MB / 365.5 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003102/0.1402, allocations: 132.9 kB / 365.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.706e-05/0.1403, allocations: 51.94 kB / 365.7 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.1414, allocations: 0.6752 MB / 366.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.1415, allocations: 0 / 366.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.759e-05/0.1415, allocations: 20 kB / 366.4 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.1415, allocations: 15.94 kB / 366.4 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008105/0.1424, allocations: 451.7 kB / 366.9 MB, free: 3.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004323/0.1467, allocations: 2.898 MB / 369.8 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1596/0.3064, allocations: 444.9 kB / 370.2 MB, free: 24.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007572/0.3072, allocations: 318.4 kB / 370.5 MB, free: 24.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.3072, allocations: 3.906 kB / 370.5 MB, free: 24.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.3072, allocations: 39.72 kB / 370.5 MB, free: 24.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.094e-06/0.3072, allocations: 0 / 370.5 MB, free: 24.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002264/0.3095, allocations: 0.8018 MB / 371.3 MB, free: 24.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.496e-05/0.3096, allocations: 262.8 kB / 371.6 MB, free: 24.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00314/0.3127, allocations: 2.23 MB / 373.8 MB, free: 23.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.408e-05/0.3128, allocations: 32.98 kB / 373.9 MB, free: 23.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004255/0.3132, allocations: 0.6392 MB / 374.5 MB, free: 23.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.993e-05/0.3133, allocations: 107.9 kB / 374.6 MB, free: 23.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.3134, allocations: 85.86 kB / 374.7 MB, free: 23.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.174e-05/0.3135, allocations: 321.2 kB / 375 MB, free: 22.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003852/0.3139, allocations: 170.2 kB / 375.2 MB, free: 22.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000434/0.3143, allocations: 313 kB / 375.5 MB, free: 22.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000738/0.3151, allocations: 421.4 kB / 375.9 MB, free: 22.51 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.3151, allocations: 2.547 kB / 375.9 MB, free: 22.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00149/0.3166, allocations: 0.6644 MB / 376.6 MB, free: 22.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3166, allocations: 10.91 kB / 376.6 MB, free: 22.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3166, allocations: 2.062 kB / 376.6 MB, free: 22.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002865/0.3169, allocations: 66.84 kB / 376.6 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003871/0.3173, allocations: 95.89 kB / 376.7 MB, free: 22.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001356/0.3187, allocations: 1.77 MB / 378.5 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004763/0.3192, allocations: 55.45 kB / 378.5 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.876e-05/0.3192, allocations: 16.45 kB / 378.6 MB, free: 20.54 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.0005701/0.3198, allocations: 496.3 kB / 379 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.32, allocations: 138.7 kB / 379.2 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002164/0.3202, allocations: 165.8 kB / 379.3 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.3202, allocations: 4.875 kB / 379.4 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3202, allocations: 0 / 379.4 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.3202, allocations: 3.062 kB / 379.4 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002636/0.3229, allocations: 1.683 MB / 381 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.3229, allocations: 0 / 381 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003554/0.3232, allocations: 74.42 kB / 381.1 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001739/0.3234, allocations: 61.62 kB / 381.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.3235, allocations: 9.562 kB / 381.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001141/0.3246, allocations: 1.717 MB / 382.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3246, allocations: 1.734 kB / 382.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.3262, allocations: 0.8329 MB / 383.7 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004229/0.3266, allocations: 331.3 kB / 384.1 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.3267, allocations: 11.83 kB / 384.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004853/0.3272, allocations: 49.23 kB / 384.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.069e-05/0.3273, allocations: 36.19 kB / 384.1 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.3274, allocations: 8.828 kB / 384.2 MB, free: 17.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002075/0.3295, allocations: 1.604 MB / 385.8 MB, free: 16.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3295, allocations: 3.938 kB / 385.8 MB, free: 16.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007112/0.3302, allocations: 201.4 kB / 386 MB, free: 16.52 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.0009949/0.3312, allocations: 475.2 kB / 386.4 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.3324, allocations: 0.5477 MB / 387 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.3324, allocations: 1.219 kB / 387 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005575/0.3329, allocations: 325 kB / 387.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008893/0.3338, allocations: 211.6 kB / 387.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003453/0.3373, allocations: 2.673 MB / 390.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006361/0.338, allocations: 1.259 MB / 391.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004608/0.3384, allocations: 210.5 kB / 391.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.3386, allocations: 74.08 kB / 391.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3386, allocations: 0 / 391.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of Templates: time 0.02158/0.3602, allocations: 14.06 MB / 405.8 MB, free: 1.422 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