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.00159/0.00159, allocations: 107.4 kB / 17.98 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001852/0.001852, allocations: 213.7 kB / 18.92 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 247.1 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 68.33 kB / 307.1 MB, free: 0.9141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1097, allocations: 50.53 MB / 357.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00694/0.1166, allocations: 4.044 MB / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003737/0.1204, allocations: 2.034 MB / 363.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005284/0.121, allocations: 15.94 kB / 363.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001539/0.1226, allocations: 0.5645 MB / 364.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009869/0.1236, allocations: 358.5 kB / 364.7 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007714/0.1244, allocations: 263.4 kB / 364.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001409/0.1258, allocations: 0.982 MB / 365.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006104/0.1264, allocations: 352.5 kB / 366.3 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006238/0.127, allocations: 378.7 kB / 366.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008204/0.1279, allocations: 0.4944 MB / 367.1 MB, free: 4.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001704/0.1281, allocations: 80 kB / 367.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003469/0.1284, allocations: 136 kB / 367.3 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004444/0.1289, allocations: 478.6 kB / 367.8 MB, free: 4.199 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006634/0.1295, allocations: 0.629 MB / 368.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001475/0.131, allocations: 1.454 MB / 369.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.131, allocations: 8 kB / 369.9 MB, free: 2.102 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1311, allocations: 0 / 369.9 MB, free: 2.102 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.63e-05/0.1311, allocations: 0 / 369.9 MB, free: 2.102 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.002993/0.1341, allocations: 1.814 MB / 371.7 MB, free: 236 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1341, allocations: 8.031 kB / 371.7 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002505/0.1344, allocations: 159 kB / 371.9 MB, free: 68 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1677/0.3021, allocations: 1.173 MB / 373 MB, free: 19.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003583/0.3025, allocations: 135.9 kB / 373.2 MB, free: 19.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.3027, allocations: 49 kB / 373.2 MB, free: 19.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.304, allocations: 0.6727 MB / 373.9 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.304, allocations: 0.625 kB / 373.9 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.467e-05/0.3041, allocations: 23.38 kB / 373.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.3041, allocations: 15.5 kB / 373.9 MB, free: 19.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008829/0.305, allocations: 449.2 kB / 374.4 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004812/0.3098, allocations: 2.898 MB / 377.3 MB, free: 17.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.3109, allocations: 457.2 kB / 377.7 MB, free: 17.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006849/0.3116, allocations: 321.7 kB / 378 MB, free: 17.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.3117, allocations: 3.344 kB / 378 MB, free: 17.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.3117, allocations: 38.36 kB / 378.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.184e-06/0.3117, allocations: 0.9375 kB / 378.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002129/0.3139, allocations: 0.803 MB / 378.9 MB, free: 16.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.834e-05/0.3139, allocations: 266.3 kB / 379.1 MB, free: 16.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003129/0.3171, allocations: 2.242 MB / 381.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.117e-05/0.3171, allocations: 33.02 kB / 381.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005144/0.3177, allocations: 0.643 MB / 382.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.976e-05/0.3178, allocations: 106.1 kB / 382.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.3179, allocations: 80.41 kB / 382.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.48e-05/0.318, allocations: 319 kB / 382.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000429/0.3184, allocations: 174.2 kB / 382.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005092/0.3189, allocations: 310.9 kB / 383 MB, free: 14.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008182/0.3198, allocations: 420.6 kB / 383.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.3198, allocations: 0 / 383.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001568/0.3213, allocations: 0.6631 MB / 384.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.3214, allocations: 5.625 kB / 384.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.3214, allocations: 6.406 kB / 384.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003045/0.3217, allocations: 66.22 kB / 384.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.3221, allocations: 96.64 kB / 384.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/0.3235, allocations: 1.772 MB / 386 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005669/0.3241, allocations: 64.23 kB / 386.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/0.3241, allocations: 16.5 kB / 386.1 MB, free: 12.44 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.0006161/0.3248, allocations: 485.9 kB / 386.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.3249, allocations: 137.7 kB / 386.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.3252, allocations: 165.1 kB / 386.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3252, allocations: 3.25 kB / 386.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3252, allocations: 4.969 kB / 386.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.3252, allocations: 1.594 kB / 386.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.328, allocations: 1.684 MB / 388.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.328, allocations: 1.953 kB / 388.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003677/0.3284, allocations: 78.27 kB / 388.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001891/0.3286, allocations: 60.62 kB / 388.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.044e-05/0.3287, allocations: 11.66 kB / 388.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001195/0.3299, allocations: 1.719 MB / 390.5 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3299, allocations: 3.844 kB / 390.5 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00186/0.3317, allocations: 0.832 MB / 391.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006766/0.3324, allocations: 334.8 kB / 391.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.3326, allocations: 8.25 kB / 391.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000532/0.3331, allocations: 55.22 kB / 391.7 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.3333, allocations: 28.75 kB / 391.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-05/0.3333, allocations: 15.33 kB / 391.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002317/0.3356, allocations: 1.607 MB / 393.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3356, allocations: 0 / 393.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008664/0.3365, allocations: 203.4 kB / 393.5 MB, free: 8.145 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.001654/0.3382, allocations: 463.2 kB / 394 MB, free: 7.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.3395, allocations: 0.548 MB / 394.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.3395, allocations: 1.781 kB / 394.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005425/0.34, allocations: 327.1 kB / 394.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.3411, allocations: 214.3 kB / 395.1 MB, free: 7.293 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003725/0.3449, allocations: 3.094 MB / 398.2 MB, free: 5.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006144/0.3455, allocations: 1.248 MB / 399.4 MB, free: 4.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002415/0.3457, allocations: 79.42 kB / 399.5 MB, free: 4.367 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3458, allocations: 0 / 399.5 MB, free: 4.367 MB / 302.1 MB Notification: Performance of Templates: time 0.03242/0.3782, allocations: 21 MB / 420.5 MB, free: 15.4 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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