Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 107.6 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001778/0.001778, allocations: 206.6 kB / 24.48 MB, free: 3.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.426/1.426, allocations: 230.6 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 47.92 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2625, allocations: 53.37 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005865/0.2684, allocations: 3.701 MB / 436 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00352/0.2719, allocations: 1.94 MB / 438 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003947/0.2723, allocations: 15.88 kB / 438 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001354/0.2737, allocations: 0.5642 MB / 438.5 MB, free: 492 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008226/0.2745, allocations: 398 kB / 438.9 MB, free: 92 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00069/0.2752, allocations: 287.5 kB / 439.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00122/0.2764, allocations: 0.9888 MB / 440.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004164/0.2768, allocations: 232 kB / 440.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000505/0.2773, allocations: 402.7 kB / 440.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006577/0.278, allocations: 0.5061 MB / 441.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.2781, allocations: 80 kB / 441.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002666/0.2784, allocations: 143.9 kB / 441.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004022/0.2788, allocations: 474.7 kB / 442 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005356/0.2793, allocations: 493 kB / 442.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001899/0.2812, allocations: 1.782 MB / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2812, allocations: 0 / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2812, allocations: 0 / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.622e-05/0.2812, allocations: 0 / 444.3 MB, free: 10.73 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.003286/0.2845, allocations: 1.804 MB / 446.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.2846, allocations: 11.97 kB / 446.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002823/0.2848, allocations: 167.9 kB / 446.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002082/0.2869, allocations: 1.138 MB / 447.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.2871, allocations: 174.1 kB / 447.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-05/0.2872, allocations: 55.89 kB / 447.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.2886, allocations: 1.011 MB / 448.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.2886, allocations: 3.938 kB / 448.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.379e-05/0.2887, allocations: 24 kB / 448.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.2887, allocations: 12 kB / 448.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008581/0.2895, allocations: 439.6 kB / 449.1 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004638/0.2942, allocations: 2.521 MB / 451.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009856/0.2952, allocations: 391.3 kB / 452 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006505/0.2958, allocations: 292.7 kB / 452.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.2958, allocations: 4 kB / 452.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.434e-05/0.2959, allocations: 42.5 kB / 452.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.655e-06/0.2959, allocations: 0 / 452.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001993/0.2979, allocations: 0.693 MB / 453 MB, free: 1.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001629/0.298, allocations: 269 kB / 453.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003069/0.3011, allocations: 2.214 MB / 455.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.614e-05/0.3012, allocations: 33.7 kB / 455.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000623/0.3018, allocations: 0.6627 MB / 456.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.3019, allocations: 107.1 kB / 456.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.3021, allocations: 78.06 kB / 456.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3022, allocations: 321.9 kB / 456.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003631/0.3026, allocations: 164.6 kB / 456.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005723/0.3032, allocations: 0.4982 MB / 457.3 MB, free: 13.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007351/0.3039, allocations: 400.6 kB / 457.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.3039, allocations: 3.984 kB / 457.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001533/0.3054, allocations: 0.645 MB / 458.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.3055, allocations: 12.19 kB / 458.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3055, allocations: 0 / 458.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003032/0.3058, allocations: 72.73 kB / 458.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004038/0.3062, allocations: 87.89 kB / 458.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00187/0.3081, allocations: 1.633 MB / 460.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005456/0.3086, allocations: 51.75 kB / 460.2 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-05/0.3087, allocations: 12 kB / 460.3 MB, free: 10.05 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.0007198/0.3094, allocations: 497.5 kB / 460.7 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002346/0.3096, allocations: 139.1 kB / 460.9 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002282/0.3098, allocations: 161.2 kB / 461 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3098, allocations: 4 kB / 461 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3098, allocations: 3.938 kB / 461 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3098, allocations: 0 / 461 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002944/0.3128, allocations: 1.424 MB / 462.5 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3128, allocations: 8.062 kB / 462.5 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003642/0.3132, allocations: 71.89 kB / 462.5 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002085/0.3134, allocations: 56.81 kB / 462.6 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.332e-05/0.3134, allocations: 8 kB / 462.6 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001705/0.3151, allocations: 1.594 MB / 464.2 MB, free: 5.922 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3151, allocations: 0 / 464.2 MB, free: 5.922 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.3168, allocations: 0.7989 MB / 465 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007846/0.3176, allocations: 259 kB / 465.3 MB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001371/0.3177, allocations: 8 kB / 465.3 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005067/0.3182, allocations: 43.95 kB / 465.3 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.349e-05/0.3183, allocations: 35.88 kB / 465.3 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.3184, allocations: 8 kB / 465.3 MB, free: 4.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002282/0.3206, allocations: 1.587 MB / 466.9 MB, free: 3.164 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3206, allocations: 3.938 kB / 466.9 MB, free: 3.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008068/0.3215, allocations: 215.6 kB / 467.1 MB, free: 2.949 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.001913/0.3234, allocations: 499.5 kB / 467.6 MB, free: 2.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.3246, allocations: 490.7 kB / 468.1 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.3246, allocations: 4.125 kB / 468.1 MB, free: 2.176 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005772/0.3251, allocations: 298.5 kB / 468.4 MB, free: 1.871 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.3262, allocations: 196.4 kB / 468.6 MB, free: 1.688 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004474/0.3306, allocations: 2.742 MB / 471.3 MB, free: 14.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007703/0.3314, allocations: 0.6525 MB / 472 MB, free: 14.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002819/0.3317, allocations: 75.42 kB / 472.1 MB, free: 14.15 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3317, allocations: 0 / 472.1 MB, free: 14.15 MB / 382.1 MB Notification: Performance of Templates: time 0.03171/0.3634, allocations: 21.24 MB / 493.3 MB, free: 8.941 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 8.862810227990849]