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.001137/0.001137, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.3 MB / 246.9 MB, free: 8.984 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 59.66 kB / 306.9 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09776/0.09921, allocations: 50.54 MB / 357.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005608/0.1049, allocations: 4.04 MB / 361.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003283/0.1082, allocations: 2.046 MB / 363.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004867/0.1087, allocations: 15.94 kB / 363.5 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001402/0.1102, allocations: 0.5568 MB / 364.1 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009306/0.1111, allocations: 350.6 kB / 364.4 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007249/0.1119, allocations: 266.9 kB / 364.7 MB, free: 6.945 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.1131, allocations: 0.9312 MB / 365.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005348/0.1137, allocations: 304.1 kB / 365.9 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005817/0.1143, allocations: 342.7 kB / 366.3 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006551/0.1149, allocations: 470.2 kB / 366.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000134/0.1151, allocations: 52 kB / 366.8 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002818/0.1154, allocations: 99.97 kB / 366.9 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003617/0.1157, allocations: 446.6 kB / 367.3 MB, free: 4.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007122/0.1165, allocations: 0.5899 MB / 367.9 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001216/0.1177, allocations: 1.427 MB / 369.3 MB, free: 2.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.1177, allocations: 0 / 369.3 MB, free: 2.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1177, allocations: 3.938 kB / 369.3 MB, free: 2.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.671e-05/0.1178, allocations: 0 / 369.3 MB, free: 2.297 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.003393/0.1212, allocations: 1.818 MB / 371.1 MB, free: 432 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.1212, allocations: 8.031 kB / 371.2 MB, free: 424 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002975/0.1215, allocations: 163 kB / 371.3 MB, free: 260 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1621/0.2836, allocations: 1.17 MB / 372.5 MB, free: 19.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003839/0.284, allocations: 134.8 kB / 372.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.2842, allocations: 49.31 kB / 372.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.2855, allocations: 0.6715 MB / 373.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.2856, allocations: 0 / 373.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.257e-05/0.2857, allocations: 22.72 kB / 373.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.2857, allocations: 15.94 kB / 373.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009367/0.2866, allocations: 447 kB / 373.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004537/0.2912, allocations: 2.899 MB / 376.7 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.2922, allocations: 448.5 kB / 377.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006678/0.2929, allocations: 329.9 kB / 377.5 MB, free: 17.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.293, allocations: 4 kB / 377.5 MB, free: 17.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.293, allocations: 42.88 kB / 377.5 MB, free: 17.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.024e-06/0.293, allocations: 0 / 377.5 MB, free: 17.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002149/0.2952, allocations: 0.7948 MB / 378.3 MB, free: 16.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.2952, allocations: 262.7 kB / 378.6 MB, free: 16.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003082/0.2983, allocations: 2.242 MB / 380.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/0.2984, allocations: 41.39 kB / 380.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004413/0.2988, allocations: 0.6391 MB / 381.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.014e-05/0.2989, allocations: 105.7 kB / 381.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.2991, allocations: 76.02 kB / 381.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.769e-05/0.2991, allocations: 323.8 kB / 382 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00042/0.2995, allocations: 173.9 kB / 382.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004642/0.3, allocations: 310.7 kB / 382.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007891/0.3008, allocations: 413.2 kB / 382.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3008, allocations: 1.062 kB / 382.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0016/0.3024, allocations: 0.6655 MB / 383.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.3025, allocations: 5.562 kB / 383.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.3025, allocations: 3.016 kB / 383.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003015/0.3028, allocations: 70.52 kB / 383.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004192/0.3032, allocations: 100.9 kB / 383.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001376/0.3046, allocations: 1.614 MB / 385.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006048/0.3052, allocations: 53.52 kB / 385.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.3053, allocations: 15.83 kB / 385.4 MB, free: 12.57 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.0006174/0.3059, allocations: 486.2 kB / 385.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002552/0.3062, allocations: 138.3 kB / 386 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000257/0.3064, allocations: 165.2 kB / 386.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3064, allocations: 7.438 kB / 386.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3064, allocations: 2.344 kB / 386.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.3065, allocations: 2.156 kB / 386.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003009/0.3095, allocations: 1.683 MB / 387.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3095, allocations: 3.938 kB / 387.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003652/0.3099, allocations: 82.42 kB / 387.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001894/0.3101, allocations: 53.58 kB / 388 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.133e-05/0.3101, allocations: 7.906 kB / 388 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.3114, allocations: 1.56 MB / 389.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3114, allocations: 1.188 kB / 389.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.3131, allocations: 0.8315 MB / 390.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005854/0.3137, allocations: 330.5 kB / 390.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/0.314, allocations: 8.344 kB / 390.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005638/0.3145, allocations: 58.39 kB / 390.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.27e-05/0.3146, allocations: 30.45 kB / 390.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.3147, allocations: 8.234 kB / 390.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002311/0.317, allocations: 1.611 MB / 392.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.317, allocations: 0 / 392.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008653/0.3179, allocations: 212 kB / 392.6 MB, free: 8.504 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.001007/0.3189, allocations: 470.3 kB / 393.1 MB, free: 8.297 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001138/0.32, allocations: 0.5151 MB / 393.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.3201, allocations: 1.312 kB / 393.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005733/0.3206, allocations: 323.5 kB / 393.9 MB, free: 7.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.3217, allocations: 202.2 kB / 394.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004149/0.3259, allocations: 3.085 MB / 397.2 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006802/0.3266, allocations: 1.253 MB / 398.5 MB, free: 4.844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.3269, allocations: 70.61 kB / 398.5 MB, free: 4.832 MB / 302.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3269, allocations: 3.969 kB / 398.5 MB, free: 4.832 MB / 302.1 MB Notification: Performance of Templates: time 0.02765/0.3545, allocations: 21 MB / 419.5 MB, free: 292 kB / 318.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