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.001404/0.001404, allocations: 85.91 kB / 22.21 MB, free: 2.285 MB / 18.57 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.00117/0.00117, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 18.57 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.016/1.016, allocations: 177 MB / 205.9 MB, free: 4.457 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+..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.[0-9,]+..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 274.1 MB, free: 4.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.265e-05/2.421e-05, allocations: 2.312 kB / 274.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004401/0.004425, allocations: 3.943 MB / 278 MB, free: 360 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002714/0.007139, allocations: 2.008 MB / 280.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003203/0.007459, allocations: 11.94 kB / 280.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.008585, allocations: 0.5794 MB / 280.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005957/0.009181, allocations: 401.8 kB / 281 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005115/0.009692, allocations: 303.2 kB / 281.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008309/0.01052, allocations: 1.001 MB / 282.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003071/0.01083, allocations: 221 kB / 282.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00049/0.01132, allocations: 0.5418 MB / 283.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004667/0.01179, allocations: 455 kB / 283.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003591/0.01215, allocations: 80 kB / 283.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000205/0.01235, allocations: 131.9 kB / 283.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002611/0.01261, allocations: 494.6 kB / 284.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002714/0.01288, allocations: 378.9 kB / 284.6 MB, free: 9.781 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008906/0.01377, allocations: 1.09 MB / 285.7 MB, free: 8.688 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.01378, allocations: 3.938 kB / 285.7 MB, free: 8.684 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.01378, allocations: 0 / 285.7 MB, free: 8.684 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.882e-05/0.0138, allocations: 0 / 285.7 MB, free: 8.684 MB / 266.7 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.001858/0.01566, allocations: 1.909 MB / 287.6 MB, free: 6.723 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.01569, allocations: 12.03 kB / 287.6 MB, free: 6.711 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002105/0.0159, allocations: 211.9 kB / 287.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007967/0.0167, allocations: 0.7726 MB / 288.6 MB, free: 5.695 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.01682, allocations: 178 kB / 288.8 MB, free: 5.492 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.337e-05/0.01688, allocations: 56.38 kB / 288.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006115/0.01749, allocations: 0.8255 MB / 289.6 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.01751, allocations: 4.188 kB / 289.6 MB, free: 4.457 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.01755, allocations: 28.12 kB / 289.7 MB, free: 4.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.01756, allocations: 12 kB / 289.7 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.01775, allocations: 138.8 kB / 289.8 MB, free: 4.281 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002356/0.02011, allocations: 2.215 MB / 292 MB, free: 1.984 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003643/0.02047, allocations: 231.1 kB / 292.3 MB, free: 1.746 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002403/0.02071, allocations: 175.6 kB / 292.4 MB, free: 1.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.02073, allocations: 8 kB / 292.4 MB, free: 1.562 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.02076, allocations: 45.33 kB / 292.5 MB, free: 1.508 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.405e-06/0.02076, allocations: 4 kB / 292.5 MB, free: 1.504 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0007207/0.02148, allocations: 442.1 kB / 292.9 MB, free: 1.062 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.067e-05/0.02156, allocations: 265 kB / 293.2 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.02278, allocations: 1.545 MB / 294.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.02281, allocations: 33.7 kB / 294.8 MB, free: 15.12 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004667/0.02328, allocations: 0.7955 MB / 295.6 MB, free: 14.32 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.713e-05/0.02334, allocations: 119 kB / 295.7 MB, free: 14.2 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.537e-05/0.02344, allocations: 83.72 kB / 295.8 MB, free: 14.11 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.02355, allocations: 0.4887 MB / 296.2 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.741e-05/0.02362, allocations: 44.7 kB / 296.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002121/0.02383, allocations: 433.1 kB / 296.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.02404, allocations: 224.8 kB / 296.9 MB, free: 12.76 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.02404, allocations: 0 / 296.9 MB, free: 12.76 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004936/0.02453, allocations: 419.9 kB / 297.3 MB, free: 12.34 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.02455, allocations: 4 kB / 297.3 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.02456, allocations: 4 kB / 297.3 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001778/0.02473, allocations: 47.64 kB / 297.4 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.02493, allocations: 83.89 kB / 297.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.02627, allocations: 2.087 MB / 299.6 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.0265, allocations: 43.77 kB / 299.6 MB, free: 9.961 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.02652, allocations: 8 kB / 299.6 MB, free: 9.953 MB / 282.7 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 (battery.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0001841/0.0267, allocations: 180.5 kB / 299.8 MB, free: 9.766 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.02683, allocations: 155.1 kB / 299.9 MB, free: 9.613 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00011/0.02694, allocations: 125.3 kB / 300.1 MB, free: 9.484 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.02694, allocations: 4 kB / 300.1 MB, free: 9.48 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.02695, allocations: 0 / 300.1 MB, free: 9.48 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.02695, allocations: 0 / 300.1 MB, free: 9.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/0.02816, allocations: 1.11 MB / 301.2 MB, free: 8.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.02817, allocations: 0 / 301.2 MB, free: 8.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.02834, allocations: 59.91 kB / 301.2 MB, free: 8.262 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/0.02844, allocations: 39.66 kB / 301.3 MB, free: 8.219 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.02846, allocations: 4 kB / 301.3 MB, free: 8.215 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009304/0.02939, allocations: 2.059 MB / 303.3 MB, free: 6.035 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.0294, allocations: 4 kB / 303.3 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005124/0.02991, allocations: 0.5627 MB / 303.9 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002304/0.03014, allocations: 207 kB / 304.1 MB, free: 5.227 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.822e-05/0.03021, allocations: 11.94 kB / 304.1 MB, free: 5.215 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.0304, allocations: 31.97 kB / 304.1 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.15e-05/0.03046, allocations: 35.89 kB / 304.2 MB, free: 5.148 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.03047, allocations: 4 kB / 304.2 MB, free: 5.145 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008328/0.03131, allocations: 0.8607 MB / 305 MB, free: 4.285 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.03131, allocations: 0 / 305 MB, free: 4.285 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004669/0.03177, allocations: 219.6 kB / 305.3 MB, free: 4.07 MB / 282.7 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.001025/0.0328, allocations: 424.7 kB / 305.7 MB, free: 3.797 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004661/0.03326, allocations: 376.2 kB / 306 MB, free: 3.41 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.03327, allocations: 0 / 306 MB, free: 3.41 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.03349, allocations: 283 kB / 306.3 MB, free: 3.113 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005992/0.03409, allocations: 188.4 kB / 306.5 MB, free: 2.934 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.03677, allocations: 2.106 MB / 308.6 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.03701, allocations: 306.6 kB / 308.9 MB, free: 464 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002651/0.03727, allocations: 119.5 kB / 309 MB, free: 340 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003895/0.03766, allocations: 294.1 kB / 309.3 MB, free: 44 kB / 282.7 MB Notification: Performance of SimCode: time 1.253e-06/0.03766, allocations: 0 / 309.3 MB, free: 44 kB / 282.7 MB Notification: Performance of Templates: time 0.02175/0.05941, allocations: 15.15 MB / 324.5 MB, free: 1.039 MB / 298.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.286862531211227]