Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00097/0.0009701, allocations: 199.6 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007555/0.0007555, allocations: 107.8 kB / 299.9 MB, free: 5.367 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002455/0.0002457, allocations: 4 kB / 360.6 MB, free: 8.512 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2693, allocations: 51.41 MB / 412.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004448/0.2738, allocations: 3.461 MB / 415.5 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003211/0.2771, allocations: 2.333 MB / 417.8 MB, free: 20.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003518/0.2774, allocations: 8 kB / 417.9 MB, free: 20.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00125/0.2787, allocations: 0.5645 MB / 418.4 MB, free: 19.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007025/0.2794, allocations: 342.6 kB / 418.8 MB, free: 19.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007231/0.2802, allocations: 267.7 kB / 419 MB, free: 18.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009194/0.2811, allocations: 0.9234 MB / 419.9 MB, free: 17.94 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004818/0.2816, allocations: 307.8 kB / 420.2 MB, free: 17.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003132/0.2819, allocations: 314.6 kB / 420.5 MB, free: 17.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004499/0.2824, allocations: 442.3 kB / 421 MB, free: 16.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.608e-05/0.2825, allocations: 40 kB / 421 MB, free: 16.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002535/0.2827, allocations: 91.91 kB / 421.1 MB, free: 16.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003003/0.2831, allocations: 418.7 kB / 421.5 MB, free: 16.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004907/0.2836, allocations: 0.5955 MB / 422.1 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001287/0.2849, allocations: 1.65 MB / 423.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2849, allocations: 0 / 423.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.2849, allocations: 0 / 423.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.722e-05/0.2849, allocations: 4 kB / 423.8 MB, free: 14.09 MB / 298.7 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.002654/0.2876, allocations: 1.593 MB / 425.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2876, allocations: 12.03 kB / 425.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002284/0.2879, allocations: 159 kB / 425.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.2897, allocations: 1.165 MB / 426.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000371/0.2901, allocations: 140.9 kB / 426.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.123e-05/0.2902, allocations: 55.88 kB / 426.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.2915, allocations: 0.6868 MB / 427.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.2916, allocations: 0 / 427.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.21e-05/0.2916, allocations: 24 kB / 427.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.2917, allocations: 12 kB / 427.6 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.2927, allocations: 447.7 kB / 428 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004723/0.2975, allocations: 2.922 MB / 431 MB, free: 6.617 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.2988, allocations: 474.5 kB / 431.4 MB, free: 6.145 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008044/0.2996, allocations: 344.6 kB / 431.8 MB, free: 5.805 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.2996, allocations: 0 / 431.8 MB, free: 5.805 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.2997, allocations: 42.56 kB / 431.8 MB, free: 5.754 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/0.2997, allocations: 0 / 431.8 MB, free: 5.754 MB / 298.7 MB Notification: Performance of matching and sorting (n=30): time 0.002521/0.3022, allocations: 0.8426 MB / 432.6 MB, free: 4.883 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.3023, allocations: 261 kB / 432.9 MB, free: 4.566 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003231/0.3055, allocations: 2.227 MB / 435.1 MB, free: 2.328 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.816e-05/0.3056, allocations: 33.7 kB / 435.2 MB, free: 2.289 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005418/0.3061, allocations: 0.6467 MB / 435.8 MB, free: 1.633 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.545e-05/0.3062, allocations: 110.5 kB / 435.9 MB, free: 1.523 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.349e-05/0.3063, allocations: 4 kB / 435.9 MB, free: 1.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.715e-05/0.3063, allocations: 329.9 kB / 436.2 MB, free: 1.191 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000501/0.3068, allocations: 180.6 kB / 436.4 MB, free: 1.012 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005685/0.3074, allocations: 316.6 kB / 436.7 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009551/0.3084, allocations: 424.7 kB / 437.1 MB, free: 208 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3084, allocations: 0 / 437.1 MB, free: 208 kB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001709/0.3101, allocations: 0.6289 MB / 437.8 MB, free: 15.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.3102, allocations: 4.281 kB / 437.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.3102, allocations: 11.98 kB / 437.8 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00035/0.3106, allocations: 64.77 kB / 437.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005813/0.3112, allocations: 107.9 kB / 438 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002128/0.3133, allocations: 1.619 MB / 439.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007417/0.3141, allocations: 71.5 kB / 439.6 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.3141, allocations: 16 kB / 439.7 MB, free: 13.54 MB / 314.7 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.0009249/0.315, allocations: 485.5 kB / 440.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/0.3153, allocations: 134.3 kB / 440.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002869/0.3156, allocations: 169.6 kB / 440.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.3156, allocations: 4 kB / 440.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3156, allocations: 0 / 440.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.3157, allocations: 3.984 kB / 440.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003867/0.3195, allocations: 1.704 MB / 442.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.3196, allocations: 8.062 kB / 442.1 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005286/0.3201, allocations: 79.88 kB / 442.2 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002601/0.3204, allocations: 56.83 kB / 442.3 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.702e-05/0.3204, allocations: 15.98 kB / 442.3 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001923/0.3224, allocations: 1.568 MB / 443.9 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3224, allocations: 96 / 443.9 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/0.3248, allocations: 0.8724 MB / 444.7 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007268/0.3255, allocations: 327.3 kB / 445.1 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.3257, allocations: 16 kB / 445.1 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006922/0.3264, allocations: 59.94 kB / 445.1 MB, free: 7.801 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.3266, allocations: 39.89 kB / 445.2 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.249e-05/0.3266, allocations: 8 kB / 445.2 MB, free: 7.754 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003102/0.3297, allocations: 1.596 MB / 446.8 MB, free: 6.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3298, allocations: 3.938 kB / 446.8 MB, free: 6.156 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001158/0.3309, allocations: 203.6 kB / 447 MB, free: 5.957 MB / 314.7 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.001522/0.3324, allocations: 0.524 MB / 447.5 MB, free: 5.574 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.3341, allocations: 0.5337 MB / 448 MB, free: 5.027 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.3341, allocations: 4 kB / 448 MB, free: 5.023 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008046/0.3349, allocations: 342.8 kB / 448.4 MB, free: 4.676 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00164/0.3366, allocations: 197.2 kB / 448.6 MB, free: 4.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006119/0.3427, allocations: 3.095 MB / 451.7 MB, free: 1.352 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.344, allocations: 1.261 MB / 452.9 MB, free: 68 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007968/0.3449, allocations: 219.8 kB / 453.1 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002649/0.3451, allocations: 75.42 kB / 453.2 MB, free: 15.77 MB / 330.7 MB Notification: Performance of SimCode: time 1.413e-06/0.3451, allocations: 0 / 453.2 MB, free: 15.77 MB / 330.7 MB Notification: Performance of Templates: time 0.03266/0.3778, allocations: 13.12 MB / 466.3 MB, free: 2.707 MB / 330.7 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","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches