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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00163/0.00163, allocations: 111.9 kB / 19.17 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001663/0.001663, allocations: 208.9 kB / 22.13 MB, free: 0.9609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 230.2 MB / 255.2 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] 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=12000,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=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 68.12 kB / 374.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09747/0.09932, allocations: 53.31 MB / 427.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006051/0.1054, allocations: 4.05 MB / 431.9 MB, free: 464 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1793/0.2846, allocations: 2.069 MB / 433.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002871/0.2849, allocations: 16.41 kB / 434 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.2862, allocations: 0.5954 MB / 434.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009532/0.2871, allocations: 396.1 kB / 434.9 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007943/0.2879, allocations: 282 kB / 435.2 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001249/0.2892, allocations: 0.9813 MB / 436.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004151/0.2896, allocations: 259 kB / 436.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004288/0.29, allocations: 390.2 kB / 436.8 MB, free: 7.742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005904/0.2906, allocations: 0.5072 MB / 437.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.2907, allocations: 79.88 kB / 437.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002705/0.291, allocations: 134.6 kB / 437.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003455/0.2913, allocations: 482.1 kB / 438 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004748/0.2918, allocations: 0.631 MB / 438.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001746/0.2936, allocations: 1.766 MB / 440.4 MB, free: 6.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.2936, allocations: 9.031 kB / 440.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2936, allocations: 3.938 kB / 440.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.522e-05/0.2936, allocations: 0 / 440.4 MB, free: 6.48 MB / 350.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.002846/0.2964, allocations: 1.873 MB / 442.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.2965, allocations: 9.156 kB / 442.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000249/0.2967, allocations: 169.9 kB / 442.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001797/0.2985, allocations: 1.196 MB / 443.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.426e-05/0.2986, allocations: 94.38 kB / 443.8 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.857e-05/0.2987, allocations: 53.42 kB / 443.8 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.2998, allocations: 0.6612 MB / 444.5 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.2998, allocations: 5.188 kB / 444.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.332e-05/0.2999, allocations: 21.41 kB / 444.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.2999, allocations: 15.56 kB / 444.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007859/0.3007, allocations: 434.6 kB / 444.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004151/0.3048, allocations: 2.863 MB / 447.8 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009336/0.3057, allocations: 401.1 kB / 448.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006264/0.3064, allocations: 292.6 kB / 448.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.682e-05/0.3064, allocations: 2.219 kB / 448.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.3064, allocations: 39.28 kB / 448.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.254e-06/0.3064, allocations: 4 kB / 448.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001909/0.3083, allocations: 0.7793 MB / 449.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/0.3084, allocations: 264.2 kB / 449.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002993/0.3114, allocations: 2.241 MB / 451.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.547e-05/0.3114, allocations: 33.16 kB / 451.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004498/0.3119, allocations: 0.6452 MB / 452.5 MB, free: 196 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.221e-05/0.312, allocations: 115.2 kB / 452.6 MB, free: 104 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.3121, allocations: 83.92 kB / 452.7 MB, free: 48 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3123, allocations: 318.9 kB / 453 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003597/0.3126, allocations: 160.7 kB / 453.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004842/0.3131, allocations: 300.2 kB / 453.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007593/0.3139, allocations: 398.2 kB / 453.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.3139, allocations: 3.938 kB / 453.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00157/0.3154, allocations: 0.6442 MB / 454.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.3155, allocations: 9.469 kB / 454.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3155, allocations: 2.938 kB / 454.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003112/0.3158, allocations: 63.06 kB / 454.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003977/0.3162, allocations: 95.08 kB / 454.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002011/0.3182, allocations: 1.769 MB / 456.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006203/0.3188, allocations: 52.88 kB / 456.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.3188, allocations: 16.75 kB / 456.5 MB, free: 13.27 MB / 366.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.0008015/0.3196, allocations: 496.1 kB / 457 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002534/0.3199, allocations: 143 kB / 457.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002677/0.3202, allocations: 160.9 kB / 457.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.3202, allocations: 4.25 kB / 457.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3202, allocations: 3.938 kB / 457.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3202, allocations: 2.953 kB / 457.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.3232, allocations: 1.661 MB / 458.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3232, allocations: 1.5 kB / 458.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/0.3235, allocations: 68.3 kB / 459 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002033/0.3237, allocations: 62.55 kB / 459.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.761e-05/0.3238, allocations: 5.781 kB / 459.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001778/0.3255, allocations: 1.727 MB / 460.8 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3255, allocations: 1.062 kB / 460.8 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/0.3273, allocations: 0.8017 MB / 461.6 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005844/0.3278, allocations: 342.2 kB / 461.9 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.328, allocations: 12.75 kB / 461.9 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005006/0.3285, allocations: 47.45 kB / 462 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.972e-05/0.3286, allocations: 32.95 kB / 462 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.531e-05/0.3286, allocations: 11 kB / 462 MB, free: 9.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002426/0.331, allocations: 1.608 MB / 463.6 MB, free: 8.488 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.331, allocations: 0 / 463.6 MB, free: 8.488 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008775/0.3319, allocations: 208 kB / 463.8 MB, free: 8.449 MB / 366.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.001749/0.3337, allocations: 456.9 kB / 464.3 MB, free: 8.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.3348, allocations: 0.4931 MB / 464.8 MB, free: 7.973 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.3348, allocations: 1.406 kB / 464.8 MB, free: 7.973 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005796/0.3354, allocations: 306.4 kB / 465.1 MB, free: 7.766 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.3365, allocations: 210 kB / 465.3 MB, free: 7.648 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/0.341, allocations: 2.729 MB / 468 MB, free: 6.145 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.342, allocations: 1.251 MB / 469.3 MB, free: 5.172 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003349/0.3423, allocations: 71.66 kB / 469.3 MB, free: 5.16 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3423, allocations: 0 / 469.3 MB, free: 5.16 MB / 366.1 MB Notification: Performance of Templates: time 0.03368/0.376, allocations: 21.11 MB / 490.5 MB, free: 1.09 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.141177316894755]