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.001895/0.001895, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.00228/0.00228, allocations: 214.5 kB / 24.48 MB, free: 3.836 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.543/1.543, allocations: 230.5 MB / 258.1 MB, free: 7.812 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.001971/0.001971, allocations: 71.88 kB / 379 MB, free: 2.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2778, allocations: 53.41 MB / 432.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006067/0.2838, allocations: 3.705 MB / 436.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003653/0.2875, allocations: 1.939 MB / 438 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004004/0.2879, allocations: 11.94 kB / 438 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.2893, allocations: 0.5641 MB / 438.6 MB, free: 324 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009858/0.2903, allocations: 398.1 kB / 439 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007573/0.2911, allocations: 286.6 kB / 439.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.2924, allocations: 0.9936 MB / 440.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004339/0.2928, allocations: 216 kB / 440.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005489/0.2934, allocations: 398.6 kB / 440.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006492/0.294, allocations: 494.2 kB / 441.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.2941, allocations: 80 kB / 441.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002954/0.2944, allocations: 140 kB / 441.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003953/0.2948, allocations: 470.7 kB / 442 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005052/0.2953, allocations: 0.4892 MB / 442.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001925/0.2973, allocations: 1.782 MB / 444.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2973, allocations: 0 / 444.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2973, allocations: 4 kB / 444.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.607e-05/0.2973, allocations: 0 / 444.3 MB, free: 10.61 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.003317/0.3006, allocations: 1.796 MB / 446.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3006, allocations: 11.98 kB / 446.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000299/0.3009, allocations: 171.9 kB / 446.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002181/0.3031, allocations: 1.13 MB / 447.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001887/0.3033, allocations: 178 kB / 447.6 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.099e-05/0.3034, allocations: 56.31 kB / 447.6 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.3048, allocations: 1.011 MB / 448.6 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.3049, allocations: 0 / 448.6 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.894e-05/0.3049, allocations: 31.94 kB / 448.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.3049, allocations: 12 kB / 448.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008574/0.3058, allocations: 435.7 kB / 449.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004869/0.3107, allocations: 2.525 MB / 451.6 MB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.3117, allocations: 397.3 kB / 452 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006533/0.3123, allocations: 287.7 kB / 452.3 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.906e-05/0.3123, allocations: 8 kB / 452.3 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.3124, allocations: 38.56 kB / 452.3 MB, free: 2.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.535e-06/0.3124, allocations: 0 / 452.3 MB, free: 2.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002/0.3144, allocations: 0.7015 MB / 453 MB, free: 1.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001735/0.3146, allocations: 269 kB / 453.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003269/0.3178, allocations: 2.214 MB / 455.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.875e-05/0.3179, allocations: 33.7 kB / 455.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006543/0.3186, allocations: 0.6549 MB / 456.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.3187, allocations: 115 kB / 456.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.3188, allocations: 74.06 kB / 456.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.319, allocations: 326 kB / 456.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003856/0.3194, allocations: 164.6 kB / 456.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006083/0.32, allocations: 0.4982 MB / 457.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007548/0.3208, allocations: 396.7 kB / 457.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3208, allocations: 0 / 457.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001593/0.3223, allocations: 0.6528 MB / 458.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.3224, allocations: 8 kB / 458.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.3224, allocations: 0 / 458.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003126/0.3227, allocations: 64.81 kB / 458.5 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003871/0.3231, allocations: 95.81 kB / 458.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001844/0.3249, allocations: 1.629 MB / 460.2 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006088/0.3255, allocations: 47.86 kB / 460.3 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.594e-05/0.3256, allocations: 23.92 kB / 460.3 MB, free: 9.918 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.0008004/0.3264, allocations: 485.5 kB / 460.8 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002511/0.3266, allocations: 139.1 kB / 460.9 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002338/0.3269, allocations: 157.3 kB / 461 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3269, allocations: 4 kB / 461 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.3269, allocations: 3.984 kB / 461.1 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.3269, allocations: 3.984 kB / 461.1 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002845/0.3297, allocations: 1.435 MB / 462.5 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3297, allocations: 0 / 462.5 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003494/0.3301, allocations: 71.94 kB / 462.6 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002099/0.3303, allocations: 52.77 kB / 462.6 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/0.3303, allocations: 15.98 kB / 462.6 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001728/0.332, allocations: 1.586 MB / 464.2 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.332, allocations: 0 / 464.2 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.3338, allocations: 0.8025 MB / 465 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007443/0.3345, allocations: 259 kB / 465.3 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.3347, allocations: 8 kB / 465.3 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004561/0.3351, allocations: 43.95 kB / 465.3 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.73e-05/0.3352, allocations: 27.89 kB / 465.3 MB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.641e-05/0.3352, allocations: 12 kB / 465.4 MB, free: 4.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002383/0.3376, allocations: 1.587 MB / 466.9 MB, free: 3.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3376, allocations: 0 / 466.9 MB, free: 3.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008457/0.3385, allocations: 223.5 kB / 467.2 MB, free: 2.828 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.001952/0.3404, allocations: 494.8 kB / 467.6 MB, free: 2.516 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.3417, allocations: 490.6 kB / 468.1 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.3417, allocations: 0 / 468.1 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005564/0.3422, allocations: 302.4 kB / 468.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.3433, allocations: 199.4 kB / 468.6 MB, free: 1.531 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004705/0.348, allocations: 2.733 MB / 471.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008253/0.3488, allocations: 0.6564 MB / 472 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.3491, allocations: 71.42 kB / 472.1 MB, free: 14 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3491, allocations: 0 / 472.1 MB, free: 14 MB / 382.1 MB Notification: Performance of Templates: time 0.03843/0.3875, allocations: 21.23 MB / 493.3 MB, free: 8.785 MB / 398.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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.056320996023715]