Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001326/0.001326, allocations: 113.1 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.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.001553/0.001553, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.51/1.51, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 47.91 kB / 378.2 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2619, allocations: 53.36 MB / 431.6 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007523/0.2694, allocations: 5.603 MB / 437.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003153/0.2726, allocations: 1.913 MB / 439.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000313/0.2729, allocations: 19.88 kB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001057/0.2739, allocations: 0.5213 MB / 439.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007128/0.2747, allocations: 386 kB / 440 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008029/0.2755, allocations: 383.9 kB / 440.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001054/0.2765, allocations: 0.8965 MB / 441.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004234/0.2769, allocations: 237.3 kB / 441.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004043/0.2773, allocations: 366.8 kB / 441.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005547/0.2779, allocations: 470.3 kB / 442.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.278, allocations: 80 kB / 442.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.2782, allocations: 127.8 kB / 442.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004994/0.2787, allocations: 0.5844 MB / 443.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006561/0.2794, allocations: 0.7415 MB / 443.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002155/0.2815, allocations: 2.128 MB / 446 MB, free: 8.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2815, allocations: 4 kB / 446 MB, free: 8.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.2815, allocations: 0 / 446 MB, free: 8.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.692e-05/0.2815, allocations: 0 / 446 MB, free: 8.469 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.0032/0.2847, allocations: 2.077 MB / 448.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.2848, allocations: 12.03 kB / 448.1 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002664/0.285, allocations: 191.7 kB / 448.3 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002255/0.2873, allocations: 1.463 MB / 449.8 MB, free: 4.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001212/0.2874, allocations: 92.41 kB / 449.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.533e-05/0.2875, allocations: 44 kB / 449.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.2886, allocations: 0.5932 MB / 450.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.2886, allocations: 0 / 450.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.372e-05/0.2887, allocations: 24 kB / 450.5 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.2887, allocations: 12 kB / 450.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007345/0.2894, allocations: 343.8 kB / 450.9 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004523/0.2939, allocations: 3.191 MB / 454 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.2951, allocations: 364.7 kB / 454.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004888/0.2956, allocations: 179.5 kB / 454.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.2956, allocations: 4 kB / 454.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.2956, allocations: 42.55 kB / 454.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.392e-06/0.2956, allocations: 0 / 454.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001876/0.2975, allocations: 0.6185 MB / 455.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/0.2976, allocations: 209.6 kB / 455.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003722/0.3014, allocations: 2.908 MB / 458.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/0.3014, allocations: 33.7 kB / 458.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000783/0.3022, allocations: 0.7861 MB / 459.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.17e-05/0.3023, allocations: 79.31 kB / 459.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.3024, allocations: 69.98 kB / 459.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.3025, allocations: 318 kB / 459.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003367/0.3029, allocations: 124.6 kB / 459.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004783/0.3033, allocations: 296.7 kB / 460 MB, free: 9.984 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007318/0.3041, allocations: 357.8 kB / 460.4 MB, free: 9.586 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3041, allocations: 4.062 kB / 460.4 MB, free: 9.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001186/0.3053, allocations: 0.5712 MB / 461 MB, free: 9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.3053, allocations: 8 kB / 461 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3053, allocations: 4 kB / 461 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002819/0.3056, allocations: 53.11 kB / 461 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.3059, allocations: 79.83 kB / 461.1 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/0.3076, allocations: 1.617 MB / 462.7 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004246/0.3081, allocations: 55.72 kB / 462.8 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.3081, allocations: 19.98 kB / 462.8 MB, free: 7.051 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0007435/0.3088, allocations: 0.5718 MB / 463.4 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.309, allocations: 174.8 kB / 463.5 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0012/0.3102, allocations: 0.5158 MB / 464.1 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.3103, allocations: 3.984 kB / 464.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.3103, allocations: 128 / 464.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3103, allocations: 3.984 kB / 464.1 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.3131, allocations: 1.668 MB / 465.7 MB, free: 4.035 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3131, allocations: 0 / 465.7 MB, free: 4.035 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002275/0.3133, allocations: 51.91 kB / 465.8 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001602/0.3135, allocations: 52.84 kB / 465.8 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.3135, allocations: 7.938 kB / 465.8 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001568/0.3151, allocations: 1.562 MB / 467.4 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3151, allocations: 0 / 467.4 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.3166, allocations: 0.7198 MB / 468.1 MB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007395/0.3173, allocations: 318.8 kB / 468.4 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/0.3175, allocations: 7.938 kB / 468.4 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004178/0.3179, allocations: 43.95 kB / 468.5 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.694e-05/0.318, allocations: 27.95 kB / 468.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.318, allocations: 11.98 kB / 468.5 MB, free: 1.098 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002878/0.3209, allocations: 2.071 MB / 470.6 MB, free: 15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3209, allocations: 0 / 470.6 MB, free: 15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007576/0.3216, allocations: 211.6 kB / 470.8 MB, free: 14.79 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001319/0.3229, allocations: 360.5 kB / 471.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.3241, allocations: 426.6 kB / 471.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3241, allocations: 3.938 kB / 471.6 MB, free: 14.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005539/0.3246, allocations: 271.2 kB / 471.8 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.3257, allocations: 231.6 kB / 472.1 MB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005214/0.3309, allocations: 3.041 MB / 475.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/0.332, allocations: 1.358 MB / 476.5 MB, free: 9.156 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005542/0.3326, allocations: 246.8 kB / 476.7 MB, free: 8.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002101/0.3328, allocations: 79.44 kB / 476.8 MB, free: 8.832 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3328, allocations: 0 / 476.8 MB, free: 8.832 MB / 382.1 MB Notification: Performance of Templates: time 0.03108/0.3639, allocations: 16.02 MB / 492.8 MB, free: 8.914 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.098067669896409]