Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 180.8 kB / 23.71 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 43.92 kB / 370.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2658, allocations: 52.19 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006006/0.2718, allocations: 4.03 MB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003344/0.2752, allocations: 1.934 MB / 429.1 MB, free: 8.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003738/0.2756, allocations: 15.94 kB / 429.1 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.2769, allocations: 0.5872 MB / 429.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006931/0.2776, allocations: 362.2 kB / 430 MB, free: 7.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007132/0.2783, allocations: 290.3 kB / 430.3 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.2796, allocations: 0.9893 MB / 431.3 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004363/0.28, allocations: 225.1 kB / 431.5 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000519/0.2806, allocations: 394.8 kB / 431.9 MB, free: 5.867 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000663/0.2812, allocations: 0.5061 MB / 432.4 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.2813, allocations: 80 kB / 432.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002926/0.2816, allocations: 143.9 kB / 432.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004075/0.282, allocations: 474.7 kB / 433.1 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006368/0.2827, allocations: 0.629 MB / 433.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001891/0.2846, allocations: 1.759 MB / 435.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2846, allocations: 0 / 435.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2846, allocations: 0 / 435.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.595e-05/0.2846, allocations: 0 / 435.5 MB, free: 2.277 MB / 334.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.003623/0.2882, allocations: 1.792 MB / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.2883, allocations: 8.031 kB / 437.3 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002868/0.2886, allocations: 167.9 kB / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001977/0.2905, allocations: 1.134 MB / 438.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.2907, allocations: 88.97 kB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-05/0.2908, allocations: 51.94 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.292, allocations: 0.6596 MB / 439.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.292, allocations: 3.938 kB / 439.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.823e-05/0.2921, allocations: 24 kB / 439.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.2921, allocations: 12 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008504/0.2929, allocations: 439.7 kB / 439.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005071/0.298, allocations: 2.828 MB / 442.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.299, allocations: 394.5 kB / 443.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007157/0.2997, allocations: 296.6 kB / 443.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.2998, allocations: 4 kB / 443.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.806e-05/0.2998, allocations: 43 kB / 443.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 3.076e-06/0.2998, allocations: 0 / 443.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002272/0.3021, allocations: 0.7004 MB / 444.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002068/0.3023, allocations: 261 kB / 444.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003466/0.3058, allocations: 2.234 MB / 446.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.134e-05/0.3058, allocations: 29.7 kB / 446.6 MB, free: 6.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006186/0.3064, allocations: 0.6434 MB / 447.3 MB, free: 6.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.3066, allocations: 111.1 kB / 447.4 MB, free: 6.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.3067, allocations: 82.02 kB / 447.4 MB, free: 5.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3069, allocations: 321.9 kB / 447.8 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003676/0.3072, allocations: 164.6 kB / 447.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005037/0.3077, allocations: 304.5 kB / 448.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007621/0.3085, allocations: 397.4 kB / 448.6 MB, free: 4.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.3085, allocations: 4 kB / 448.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001551/0.31, allocations: 0.6455 MB / 449.2 MB, free: 4.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.3101, allocations: 4 kB / 449.3 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.3101, allocations: 7.938 kB / 449.3 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003133/0.3104, allocations: 64.94 kB / 449.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003936/0.3108, allocations: 91.88 kB / 449.4 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001895/0.3127, allocations: 1.667 MB / 451.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005116/0.3132, allocations: 55.89 kB / 451.1 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.3132, allocations: 12 kB / 451.1 MB, free: 2.027 MB / 350.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.0006793/0.3139, allocations: 489.5 kB / 451.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/0.3141, allocations: 143.1 kB / 451.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002348/0.3144, allocations: 161.4 kB / 451.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3144, allocations: 4 kB / 451.9 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3144, allocations: 0 / 451.9 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3144, allocations: 7.984 kB / 451.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002956/0.3173, allocations: 1.622 MB / 453.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.3173, allocations: 128 / 453.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003594/0.3177, allocations: 79.88 kB / 453.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001952/0.3179, allocations: 56.89 kB / 453.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.433e-05/0.3179, allocations: 8 kB / 453.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00186/0.3198, allocations: 1.621 MB / 455.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.3198, allocations: 8.031 kB / 455.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.3215, allocations: 0.8006 MB / 456.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007008/0.3222, allocations: 262.9 kB / 456.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.3224, allocations: 16 kB / 456.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005005/0.3229, allocations: 43.95 kB / 456.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.323, allocations: 31.94 kB / 456.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.772e-05/0.323, allocations: 12 kB / 456.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00263/0.3257, allocations: 1.592 MB / 458.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3257, allocations: 8 kB / 458.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000836/0.3265, allocations: 207.7 kB / 458.3 MB, free: 10.66 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.001799/0.3283, allocations: 476.2 kB / 458.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.3296, allocations: 490.3 kB / 459.2 MB, free: 9.879 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.3296, allocations: 4 kB / 459.2 MB, free: 9.875 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005894/0.3302, allocations: 294.7 kB / 459.5 MB, free: 9.574 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.3312, allocations: 204.9 kB / 459.7 MB, free: 9.379 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004209/0.3354, allocations: 2.677 MB / 462.4 MB, free: 6.664 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.3365, allocations: 1.256 MB / 463.7 MB, free: 5.383 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004677/0.3369, allocations: 215.8 kB / 463.9 MB, free: 5.168 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.3371, allocations: 71.42 kB / 463.9 MB, free: 5.098 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3371, allocations: 0 / 463.9 MB, free: 5.098 MB / 366.1 MB Notification: Performance of Templates: time 0.02868/0.3658, allocations: 14.46 MB / 478.4 MB, free: 6.75 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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_4.0.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: 5.183430967852473]