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.001956/0.001956, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002537/0.002537, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002186/0.002186, allocations: 65.09 kB / 306.9 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1221, allocations: 50.52 MB / 357.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006837/0.129, allocations: 4.014 MB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003516/0.1325, allocations: 2.076 MB / 363.6 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005008/0.1331, allocations: 11.94 kB / 363.6 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001481/0.1346, allocations: 0.5953 MB / 364.2 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009425/0.1356, allocations: 382.1 kB / 364.5 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007642/0.1363, allocations: 291.3 kB / 364.8 MB, free: 6.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001185/0.1375, allocations: 0.9781 MB / 365.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005159/0.1381, allocations: 348.5 kB / 366.1 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000501/0.1386, allocations: 394.6 kB / 366.5 MB, free: 4.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000634/0.1392, allocations: 494.2 kB / 367 MB, free: 4.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001405/0.1394, allocations: 80 kB / 367.1 MB, free: 4.406 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002854/0.1397, allocations: 140 kB / 367.2 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003641/0.14, allocations: 470.7 kB / 367.7 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006429/0.1407, allocations: 0.629 MB / 368.3 MB, free: 3.176 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001553/0.1423, allocations: 1.74 MB / 370.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1423, allocations: 0 / 370.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1423, allocations: 0 / 370.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.434e-05/0.1423, allocations: 0 / 370.1 MB, free: 1.43 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.174/0.3163, allocations: 1.821 MB / 371.9 MB, free: 19.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.3164, allocations: 9.156 kB / 371.9 MB, free: 19.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003809/0.3168, allocations: 159.9 kB / 372 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.3187, allocations: 1.17 MB / 373.2 MB, free: 18.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003611/0.319, allocations: 135.1 kB / 373.3 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.865e-05/0.3191, allocations: 52.91 kB / 373.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.3205, allocations: 0.6745 MB / 374.1 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.3205, allocations: 4.469 kB / 374.1 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.316e-05/0.3205, allocations: 22.72 kB / 374.1 MB, free: 18.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.3206, allocations: 13.44 kB / 374.1 MB, free: 18.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009534/0.3215, allocations: 447.5 kB / 374.5 MB, free: 18.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004431/0.326, allocations: 2.903 MB / 377.4 MB, free: 16.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.3271, allocations: 452.7 kB / 377.9 MB, free: 16.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000654/0.3277, allocations: 324.6 kB / 378.2 MB, free: 16.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.3278, allocations: 2.438 kB / 378.2 MB, free: 16.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.3278, allocations: 42.59 kB / 378.2 MB, free: 16.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 3.336e-06/0.3278, allocations: 0 / 378.2 MB, free: 16.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002003/0.3298, allocations: 0.7998 MB / 379 MB, free: 16.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.252e-05/0.3299, allocations: 262.5 kB / 379.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002812/0.3327, allocations: 2.243 MB / 381.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.508e-05/0.3328, allocations: 35.95 kB / 381.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004402/0.3332, allocations: 0.6373 MB / 382.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.302e-05/0.3333, allocations: 108.6 kB / 382.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.3334, allocations: 81.98 kB / 382.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.865e-05/0.3335, allocations: 325.8 kB / 382.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003858/0.3339, allocations: 166.9 kB / 382.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004536/0.3344, allocations: 313.6 kB / 383.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007651/0.3351, allocations: 418.9 kB / 383.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3351, allocations: 1.125 kB / 383.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001503/0.3367, allocations: 0.669 MB / 384.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.3367, allocations: 6.453 kB / 384.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3367, allocations: 3.156 kB / 384.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000304/0.337, allocations: 61.61 kB / 384.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003967/0.3374, allocations: 102.1 kB / 384.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/0.3388, allocations: 1.771 MB / 386.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005915/0.3394, allocations: 65.36 kB / 386.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.3394, allocations: 11.84 kB / 386.3 MB, free: 11.77 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.0006331/0.3401, allocations: 490.3 kB / 386.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.3403, allocations: 134.6 kB / 386.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002022/0.3405, allocations: 164.2 kB / 387.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3405, allocations: 3.219 kB / 387.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3405, allocations: 8.922 kB / 387.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3405, allocations: 6.281 kB / 387.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002871/0.3434, allocations: 1.684 MB / 388.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3434, allocations: 5.156 kB / 388.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003503/0.3437, allocations: 74.06 kB / 388.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001839/0.3439, allocations: 57.47 kB / 388.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.808e-05/0.344, allocations: 11.12 kB / 388.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/0.3452, allocations: 1.717 MB / 390.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.3452, allocations: 1.312 kB / 390.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/0.3468, allocations: 0.833 MB / 391.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004273/0.3472, allocations: 330 kB / 391.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.3473, allocations: 16.39 kB / 391.8 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004642/0.3478, allocations: 50.42 kB / 391.8 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-05/0.3479, allocations: 32.36 kB / 391.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/0.3479, allocations: 8.938 kB / 391.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001857/0.3498, allocations: 1.611 MB / 393.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3498, allocations: 0 / 393.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007333/0.3505, allocations: 207.6 kB / 393.7 MB, free: 7.422 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.001015/0.3516, allocations: 469.1 kB / 394.2 MB, free: 7.211 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.3527, allocations: 0.5571 MB / 394.7 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.3527, allocations: 5.531 kB / 394.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000514/0.3532, allocations: 317.6 kB / 395 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008747/0.3541, allocations: 205.3 kB / 395.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003139/0.3573, allocations: 2.665 MB / 397.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005693/0.3579, allocations: 1.261 MB / 399.2 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004001/0.3583, allocations: 223.8 kB / 399.4 MB, free: 3.539 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.3584, allocations: 71.44 kB / 399.4 MB, free: 3.469 MB / 302.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3584, allocations: 0 / 399.4 MB, free: 3.469 MB / 302.1 MB Notification: Performance of Templates: time 0.02313/0.3816, allocations: 14.1 MB / 413.5 MB, free: 5.477 MB / 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/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_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches