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.001876/0.001876, allocations: 110.4 kB / 21.2 MB, free: 0.6211 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.002369/0.002369, allocations: 216.6 kB / 24.49 MB, free: 3.906 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.469/1.469, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.002425/0.002425, allocations: 43.94 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2262, allocations: 53.36 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007245/0.2335, allocations: 4.965 MB / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003211/0.2367, allocations: 1.799 MB / 439.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003378/0.237, allocations: 19.88 kB / 439.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.2382, allocations: 0.5097 MB / 439.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000804/0.239, allocations: 389.9 kB / 440 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008236/0.2398, allocations: 374.6 kB / 440.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001036/0.2408, allocations: 0.8926 MB / 441.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004373/0.2413, allocations: 233.3 kB / 441.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004413/0.2417, allocations: 374.8 kB / 441.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005329/0.2422, allocations: 466.3 kB / 442.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.2424, allocations: 80 kB / 442.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00024/0.2426, allocations: 124 kB / 442.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004986/0.2431, allocations: 0.5883 MB / 443.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000561/0.2437, allocations: 0.5473 MB / 443.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002241/0.2459, allocations: 2.156 MB / 445.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2459, allocations: 0 / 445.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2459, allocations: 0 / 445.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.979e-05/0.2459, allocations: 0 / 445.8 MB, free: 9.195 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.003598/0.2495, allocations: 2.073 MB / 447.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.2496, allocations: 11.97 kB / 447.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003188/0.2499, allocations: 203.6 kB / 448.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002633/0.2525, allocations: 1.459 MB / 449.5 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.2527, allocations: 92.41 kB / 449.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.009e-05/0.2527, allocations: 48 kB / 449.7 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.2541, allocations: 0.8325 MB / 450.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.2541, allocations: 11.92 kB / 450.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.624e-05/0.2542, allocations: 20 kB / 450.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.2542, allocations: 12 kB / 450.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000762/0.2549, allocations: 343.8 kB / 450.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00469/0.2596, allocations: 2.838 MB / 453.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.2608, allocations: 368.7 kB / 454.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004874/0.2613, allocations: 168.7 kB / 454.3 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.068e-05/0.2613, allocations: 4 kB / 454.3 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.2614, allocations: 50.48 kB / 454.3 MB, free: 388 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.014e-06/0.2614, allocations: 0 / 454.3 MB, free: 388 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001993/0.2634, allocations: 0.6069 MB / 454.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.2635, allocations: 213.6 kB / 455.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003963/0.2674, allocations: 2.872 MB / 458 MB, free: 12.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.201e-05/0.2675, allocations: 33.7 kB / 458 MB, free: 12.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000808/0.2683, allocations: 0.7974 MB / 458.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.1e-05/0.2684, allocations: 83.36 kB / 458.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.2685, allocations: 69.98 kB / 459 MB, free: 11.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2687, allocations: 318 kB / 459.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003685/0.269, allocations: 128.5 kB / 459.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005864/0.2696, allocations: 443 kB / 459.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007636/0.2704, allocations: 359.9 kB / 460.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.2704, allocations: 0 / 460.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001303/0.2717, allocations: 0.571 MB / 460.8 MB, free: 9.625 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.2717, allocations: 4 kB / 460.8 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.507e-06/0.2717, allocations: 4 kB / 460.8 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002915/0.272, allocations: 56.83 kB / 460.8 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003202/0.2723, allocations: 75.89 kB / 460.9 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.2741, allocations: 1.586 MB / 462.5 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005353/0.2747, allocations: 63.8 kB / 462.6 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.2747, allocations: 16 kB / 462.6 MB, free: 7.719 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.0008233/0.2755, allocations: 0.5718 MB / 463.1 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/0.2758, allocations: 166.9 kB / 463.3 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001335/0.2771, allocations: 0.5098 MB / 463.8 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.2771, allocations: 0 / 463.8 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.2771, allocations: 4 kB / 463.8 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008172/0.278, allocations: 302.9 kB / 464.1 MB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.2781, allocations: 15.94 kB / 464.1 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004408/0.2785, allocations: 39.95 kB / 464.2 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.2786, allocations: 39.88 kB / 464.2 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001664/0.2803, allocations: 0.5264 MB / 464.7 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001299/0.2816, allocations: 0.7092 MB / 465.4 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000326/0.2819, allocations: 114.4 kB / 465.6 MB, free: 4.684 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0029/0.2848, allocations: 2.05 MB / 467.6 MB, free: 2.609 MB / 366.1 MB Notification: Performance of Backend: time 3.71e-07/0.2848, allocations: 3.938 kB / 467.6 MB, free: 2.605 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003299/0.2881, allocations: 0.8597 MB / 468.5 MB, free: 1.945 MB / 366.1 MB Notification: Performance of SimCode: time 0.00501/0.2931, allocations: 3.478 MB / 471.9 MB, free: 14.4 MB / 382.1 MB Notification: Performance of Templates: time 0.03237/0.3255, allocations: 17.89 MB / 489.8 MB, free: 12.64 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/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: 4.799144968004839]