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.0009224/0.0009224, allocations: 97.02 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001062/0.001062, allocations: 205.9 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.7 MB / 247.5 MB, free: 9.496 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002236, allocations: 8 kB / 308.4 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09661/0.09685, allocations: 51.52 MB / 359.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00431/0.1012, allocations: 3.643 MB / 363.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003029/0.1043, allocations: 2.018 MB / 365.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003673/0.1046, allocations: 11.94 kB / 365.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001192/0.1059, allocations: 0.5646 MB / 366.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007154/0.1066, allocations: 342.6 kB / 366.5 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006293/0.1072, allocations: 267.3 kB / 366.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001073/0.1083, allocations: 0.9234 MB / 367.7 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000465/0.1088, allocations: 304.1 kB / 368 MB, free: 4.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004579/0.1093, allocations: 314.7 kB / 368.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005645/0.1098, allocations: 438.3 kB / 368.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.37e-05/0.1099, allocations: 40 kB / 368.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002271/0.1102, allocations: 95.95 kB / 368.8 MB, free: 4.062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003214/0.1105, allocations: 418.7 kB / 369.2 MB, free: 3.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005499/0.1111, allocations: 0.5955 MB / 369.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00117/0.1122, allocations: 1.395 MB / 371.2 MB, free: 1.648 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1122, allocations: 3.938 kB / 371.2 MB, free: 1.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1123, allocations: 0 / 371.2 MB, free: 1.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.648e-05/0.1123, allocations: 0 / 371.2 MB, free: 1.645 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.1722/0.2845, allocations: 1.596 MB / 372.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.2846, allocations: 9.438 kB / 372.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005932/0.2852, allocations: 162 kB / 373 MB, free: 18.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002481/0.2877, allocations: 1.171 MB / 374.2 MB, free: 17.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003778/0.2881, allocations: 141.5 kB / 374.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.2882, allocations: 48.77 kB / 374.4 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.2896, allocations: 0.6756 MB / 375 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.2896, allocations: 4.781 kB / 375 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.296e-05/0.2897, allocations: 25.17 kB / 375.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.2897, allocations: 12.41 kB / 375.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.2908, allocations: 453 kB / 375.5 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004894/0.2957, allocations: 2.927 MB / 378.4 MB, free: 16.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.2968, allocations: 479.4 kB / 378.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007136/0.2976, allocations: 339.4 kB / 379.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.2976, allocations: 6.781 kB / 379.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.2976, allocations: 38.23 kB / 379.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.655e-06/0.2977, allocations: 1.375 kB / 379.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002312/0.3, allocations: 0.8388 MB / 380.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.51e-05/0.3001, allocations: 262 kB / 380.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003651/0.3037, allocations: 2.243 MB / 382.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.063e-05/0.3038, allocations: 32.83 kB / 382.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005037/0.3043, allocations: 0.6464 MB / 383.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.063e-05/0.3044, allocations: 106.8 kB / 383.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.816e-05/0.3045, allocations: 38.03 kB / 383.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.972e-05/0.3045, allocations: 322.3 kB / 383.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004484/0.305, allocations: 179.7 kB / 383.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004916/0.3055, allocations: 312.7 kB / 384.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008493/0.3064, allocations: 428.8 kB / 384.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3064, allocations: 1.062 kB / 384.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001681/0.3081, allocations: 0.6897 MB / 385.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.3081, allocations: 6.156 kB / 385.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.3081, allocations: 2.969 kB / 385.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002983/0.3084, allocations: 71.36 kB / 385.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004092/0.3088, allocations: 105.4 kB / 385.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.3102, allocations: 1.623 MB / 387.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006295/0.3109, allocations: 65.52 kB / 387.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.423e-05/0.3109, allocations: 15.98 kB / 387.2 MB, free: 11.18 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.0006605/0.3116, allocations: 494.3 kB / 387.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002631/0.3118, allocations: 134 kB / 387.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002701/0.3121, allocations: 166.6 kB / 388 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.3121, allocations: 3.594 kB / 388 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3121, allocations: 3.609 kB / 388 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3122, allocations: 1.547 kB / 388 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003068/0.3152, allocations: 1.712 MB / 389.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3152, allocations: 0 / 389.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003535/0.3156, allocations: 83.47 kB / 389.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001957/0.3158, allocations: 61.69 kB / 389.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.909e-05/0.3158, allocations: 8.078 kB / 389.9 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/0.317, allocations: 1.57 MB / 391.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.317, allocations: 5.094 kB / 391.5 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/0.3188, allocations: 0.872 MB / 392.3 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005263/0.3194, allocations: 329.3 kB / 392.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001981/0.3196, allocations: 16.2 kB / 392.7 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005809/0.3202, allocations: 63.48 kB / 392.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.3203, allocations: 28.2 kB / 392.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/0.3203, allocations: 11.94 kB / 392.8 MB, free: 7.812 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002253/0.3226, allocations: 1.611 MB / 394.4 MB, free: 7.066 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3226, allocations: 0 / 394.4 MB, free: 7.066 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008241/0.3234, allocations: 210.5 kB / 394.6 MB, free: 7.027 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.001046/0.3245, allocations: 469.8 kB / 395 MB, free: 6.797 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.3257, allocations: 0.5291 MB / 395.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.3257, allocations: 0.75 kB / 395.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005636/0.3263, allocations: 338.4 kB / 395.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.3275, allocations: 192.3 kB / 396.1 MB, free: 6.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004028/0.3315, allocations: 3.165 MB / 399.3 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007253/0.3322, allocations: 1.253 MB / 400.5 MB, free: 2.961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/0.3325, allocations: 71.42 kB / 400.6 MB, free: 2.891 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3325, allocations: 0 / 400.6 MB, free: 2.891 MB / 302.1 MB Notification: Performance of Templates: time 0.02982/0.3623, allocations: 20.81 MB / 421.4 MB, free: 14.12 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.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