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.001709/0.001709, allocations: 111.1 kB / 20.44 MB, free: 1.324 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.002133/0.002133, allocations: 198.6 kB / 23.72 MB, free: 4.504 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.559/1.559, allocations: 230.5 MB / 257.4 MB, free: 7.758 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.001932/0.001932, allocations: 72.06 kB / 378.2 MB, free: 2.316 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2577, allocations: 53.41 MB / 431.6 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006015/0.2638, allocations: 3.694 MB / 435.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003649/0.2674, allocations: 1.941 MB / 437.3 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003897/0.2678, allocations: 15.88 kB / 437.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001511/0.2693, allocations: 0.5678 MB / 437.8 MB, free: 292 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008239/0.2701, allocations: 402 kB / 438.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007199/0.2709, allocations: 283.1 kB / 438.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001214/0.2721, allocations: 0.9936 MB / 439.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000413/0.2725, allocations: 217 kB / 439.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005108/0.273, allocations: 398.6 kB / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007457/0.2737, allocations: 494.1 kB / 440.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000136/0.2739, allocations: 80 kB / 440.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002942/0.2742, allocations: 144 kB / 440.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004227/0.2746, allocations: 470.7 kB / 441.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005138/0.2751, allocations: 493 kB / 441.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001969/0.2771, allocations: 1.786 MB / 443.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2771, allocations: 0 / 443.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.2771, allocations: 0 / 443.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.232e-05/0.2771, allocations: 11.94 kB / 443.5 MB, free: 10.56 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.003595/0.2807, allocations: 1.792 MB / 445.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/0.2808, allocations: 15.98 kB / 445.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000337/0.2811, allocations: 167.9 kB / 445.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002017/0.2831, allocations: 1.138 MB / 446.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001755/0.2833, allocations: 170.1 kB / 446.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.185e-05/0.2834, allocations: 52.33 kB / 446.9 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.2848, allocations: 1.015 MB / 447.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.2848, allocations: 3.984 kB / 447.9 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.196e-05/0.2849, allocations: 24 kB / 447.9 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.2849, allocations: 16 kB / 447.9 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000891/0.2858, allocations: 435.7 kB / 448.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004744/0.2905, allocations: 2.517 MB / 450.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.2916, allocations: 394.5 kB / 451.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007065/0.2923, allocations: 291.7 kB / 451.5 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.2923, allocations: 4 kB / 451.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.2923, allocations: 42.55 kB / 451.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.795e-06/0.2923, allocations: 0 / 451.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.00212/0.2945, allocations: 0.7015 MB / 452.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001978/0.2947, allocations: 269 kB / 452.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00361/0.2983, allocations: 2.214 MB / 454.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.341e-05/0.2984, allocations: 29.7 kB / 454.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001048/0.2994, allocations: 0.6588 MB / 455.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002269/0.2996, allocations: 115 kB / 455.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.2998, allocations: 74.08 kB / 455.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.3, allocations: 326 kB / 456 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004445/0.3005, allocations: 156.7 kB / 456.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008388/0.3013, allocations: 0.5059 MB / 456.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008508/0.3022, allocations: 392.7 kB / 457 MB, free: 12.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.3022, allocations: 0 / 457 MB, free: 12.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00153/0.3037, allocations: 0.6568 MB / 457.7 MB, free: 11.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/0.3037, allocations: 10.81 kB / 457.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.3037, allocations: 0 / 457.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003234/0.3041, allocations: 64.81 kB / 457.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003907/0.3044, allocations: 91.81 kB / 457.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002272/0.3067, allocations: 1.637 MB / 459.5 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006212/0.3073, allocations: 47.77 kB / 459.5 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.146e-05/0.3074, allocations: 24.02 kB / 459.5 MB, free: 9.879 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.000831/0.3082, allocations: 489.7 kB / 460 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002247/0.3084, allocations: 135.1 kB / 460.1 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002433/0.3087, allocations: 161.3 kB / 460.3 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.3087, allocations: 4 kB / 460.3 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3087, allocations: 0 / 460.3 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.3087, allocations: 3.984 kB / 460.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002992/0.3117, allocations: 1.435 MB / 461.7 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3117, allocations: 0 / 461.7 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003497/0.312, allocations: 71.88 kB / 461.8 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002142/0.3123, allocations: 52.83 kB / 461.9 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.168e-05/0.3123, allocations: 8 kB / 461.9 MB, free: 7.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001783/0.3141, allocations: 1.59 MB / 463.5 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3141, allocations: 0 / 463.5 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.3158, allocations: 0.7941 MB / 464.3 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008162/0.3166, allocations: 259 kB / 464.5 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001917/0.3168, allocations: 15.98 kB / 464.5 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005123/0.3174, allocations: 43.95 kB / 464.6 MB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.3175, allocations: 31.83 kB / 464.6 MB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/0.3175, allocations: 12 kB / 464.6 MB, free: 4.598 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002804/0.3203, allocations: 1.583 MB / 466.2 MB, free: 3.016 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3203, allocations: 4 kB / 466.2 MB, free: 3.012 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008775/0.3212, allocations: 211.6 kB / 466.4 MB, free: 2.805 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.002048/0.3232, allocations: 0.4897 MB / 466.9 MB, free: 2.484 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.3246, allocations: 490.8 kB / 467.4 MB, free: 1.992 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.3246, allocations: 8.062 kB / 467.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000702/0.3253, allocations: 298.4 kB / 467.7 MB, free: 1.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/0.3265, allocations: 188.1 kB / 467.9 MB, free: 1.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004977/0.3314, allocations: 2.676 MB / 470.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.3325, allocations: 0.6603 MB / 471.2 MB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005568/0.333, allocations: 215.5 kB / 471.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002279/0.3332, allocations: 63.44 kB / 471.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3333, allocations: 0 / 471.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of Templates: time 0.02878/0.362, allocations: 15.24 MB / 486.7 MB, free: 14.71 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.274376057088375]