Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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.0008835/0.0008835, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001352/0.002235, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0008968/0.0008968, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001208/0.002105, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.043/1.043, allocations: 177.5 MB / 190 MB, free: 4.801 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09112/1.135, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.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.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.302e-05/1.444e-05, allocations: 2.312 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.009402/0.009416, allocations: 10.74 MB / 255.9 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00523/0.01465, allocations: 3.959 MB / 259.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000463/0.01511, allocations: 35.75 kB / 259.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002546/0.01766, allocations: 2.438 MB / 262.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006243/0.01828, allocations: 484.2 kB / 262.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000651/0.01893, allocations: 0.5225 MB / 263.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006042/0.02497, allocations: 9.877 MB / 273.2 MB, free: 1.441 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1452/0.1702, allocations: 2.703 MB / 275.9 MB, free: 6.238 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008141/0.1783, allocations: 6.877 MB / 282.8 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005324/0.1836, allocations: 3.928 MB / 286.7 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002124/0.1857, allocations: 0.916 MB / 287.7 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001486/0.1872, allocations: 0.9737 MB / 288.6 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002213/0.1894, allocations: 5.323 MB / 294 MB, free: 5.074 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003059/0.1925, allocations: 3.42 MB / 297.4 MB, free: 3.035 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009583/0.2021, allocations: 15.45 MB / 312.8 MB, free: 5.184 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-05/0.2021, allocations: 0 / 312.8 MB, free: 5.184 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.557e-06/0.2021, allocations: 0 / 312.8 MB, free: 5.184 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002703/0.2024, allocations: 0 / 312.8 MB, free: 5.184 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.02147/0.2239, allocations: 19.36 MB / 332.2 MB, free: 2.668 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.2239, allocations: 8.625 kB / 332.2 MB, free: 2.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001583/0.2255, allocations: 1.3 MB / 333.5 MB, free: 1.359 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.2385, allocations: 12.13 MB / 345.6 MB, free: 5.551 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006041/0.2391, allocations: 0.8625 MB / 346.5 MB, free: 4.566 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005615/0.2397, allocations: 435 kB / 346.9 MB, free: 4.145 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005656/0.2453, allocations: 5.851 MB / 352.8 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.979e-05/0.2454, allocations: 7.734 kB / 352.8 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003218/0.2457, allocations: 180 kB / 352.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.558e-05/0.2457, allocations: 96 kB / 353 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.2474, allocations: 0.9211 MB / 354 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02162/0.269, allocations: 15.32 MB / 369.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001724/0.2708, allocations: 1.509 MB / 370.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001363/0.2721, allocations: 1.153 MB / 371.9 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.296e-05/0.2722, allocations: 37.94 kB / 372 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.595e-05/0.2723, allocations: 81.05 kB / 372.1 MB, free: 10.87 MB / 346.7 MB Notification: Performance of pre-optimization done (n=201): time 3.507e-06/0.2723, allocations: 0 / 372.1 MB, free: 10.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=201): time 0.005576/0.2779, allocations: 2.759 MB / 374.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.2779, allocations: 81.91 kB / 374.9 MB, free: 8.039 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02424/0.3021, allocations: 18.32 MB / 393.2 MB, free: 6.008 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002606/0.3024, allocations: 73.7 kB / 393.3 MB, free: 5.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002906/0.3053, allocations: 3.361 MB / 396.7 MB, free: 2.547 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005878/0.3059, allocations: 0.728 MB / 397.4 MB, free: 1.812 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008124/0.3067, allocations: 477 kB / 397.8 MB, free: 1.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.789e-05/0.3068, allocations: 301.1 kB / 398.1 MB, free: 1.043 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00064/0.3074, allocations: 246.4 kB / 398.4 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/0.3091, allocations: 2.434 MB / 400.8 MB, free: 13.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00192/0.311, allocations: 1.297 MB / 402.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.311, allocations: 4 kB / 402.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=312) (initialization): time 0.003618/0.3146, allocations: 1.983 MB / 404.1 MB, free: 10.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/0.3147, allocations: 15.98 kB / 404.1 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.208e-05/0.3147, allocations: 20.06 kB / 404.1 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006597/0.3153, allocations: 244.5 kB / 404.4 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002236/0.3176, allocations: 0.7081 MB / 405.1 MB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003365/0.3209, allocations: 3.248 MB / 408.3 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002283/0.3232, allocations: 310.8 kB / 408.6 MB, free: 5.828 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001894/0.3234, allocations: 75.95 kB / 408.7 MB, free: 5.754 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 14 (stack.cell[1,1].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,2].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 (272): * Single equations (assignments): 271 * 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 {(3,38)} Notification: Performance of prepare postOptimizeDAE: time 0.00202/0.3254, allocations: 298.4 kB / 409 MB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001344/0.3268, allocations: 0.8817 MB / 409.9 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.3287, allocations: 1.382 MB / 411.3 MB, free: 3.207 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.3287, allocations: 16 kB / 411.3 MB, free: 3.191 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3287, allocations: 4 kB / 411.3 MB, free: 3.188 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.3288, allocations: 7.969 kB / 411.3 MB, free: 3.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1893/0.518, allocations: 6.554 MB / 417.8 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.518, allocations: 1.531 kB / 417.8 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/0.52, allocations: 0.5579 MB / 418.4 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006691/0.5267, allocations: 1.91 MB / 420.3 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007322/0.5274, allocations: 180.5 kB / 420.5 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002061/0.5276, allocations: 67.97 kB / 420.6 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002655/0.5303, allocations: 2.751 MB / 423.3 MB, free: 99.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.5303, allocations: 2.047 kB / 423.3 MB, free: 99.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007666/0.538, allocations: 2.479 MB / 425.8 MB, free: 98.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005384/0.5433, allocations: 80.7 kB / 425.9 MB, free: 98.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005153/0.5485, allocations: 223.6 kB / 426.1 MB, free: 98.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007644/0.5493, allocations: 225 kB / 426.3 MB, free: 98.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/0.5494, allocations: 44.7 kB / 426.3 MB, free: 98.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.03091/0.5804, allocations: 9.813 MB / 436.2 MB, free: 97.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5804, allocations: 0 / 436.2 MB, free: 97.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008572/0.5889, allocations: 1.878 MB / 438 MB, free: 97.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].limIntegrator.y,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 (171): * Single equations (assignments): 170 * 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 {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002199/0.5911, allocations: 0.7424 MB / 438.8 MB, free: 97.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003036/0.5942, allocations: 1.504 MB / 440.3 MB, free: 97.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0005134/0.5947, allocations: 202.4 kB / 440.5 MB, free: 97.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001386/0.5961, allocations: 0.9958 MB / 441.5 MB, free: 97.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01772/0.6138, allocations: 17.46 MB / 458.9 MB, free: 81.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06801/0.6818, allocations: 29.08 MB / 488 MB, free: 53.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00932/0.6911, allocations: 3.583 MB / 491.6 MB, free: 50.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.007165/0.6983, allocations: 1.601 MB / 493.2 MB, free: 48.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008437/0.7067, allocations: 2.17 MB / 495.4 MB, free: 46.3 MB / 378.7 MB Notification: Performance of SimCode: time 3.166e-06/0.7067, allocations: 0 / 495.4 MB, free: 46.3 MB / 378.7 MB Notification: Performance of Templates: time 0.4152/1.122, allocations: 152 MB / 0.6322 GB, free: 81.92 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_StackRC/CCCV_StackRC.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.147075470536947]