Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001129/0.001129, allocations: 111 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 207.9 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001214, allocations: 63.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2377, allocations: 50.53 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006229/0.244, allocations: 5.549 MB / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002549/0.2465, allocations: 1.874 MB / 417.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002254/0.2468, allocations: 15.94 kB / 417.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009035/0.2477, allocations: 0.5147 MB / 417.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006192/0.2483, allocations: 397.9 kB / 418.3 MB, free: 9.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006682/0.249, allocations: 367 kB / 418.6 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008461/0.2499, allocations: 0.9003 MB / 419.5 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004645/0.2503, allocations: 336.8 kB / 419.8 MB, free: 7.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000329/0.2507, allocations: 366.7 kB / 420.2 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004542/0.2511, allocations: 442.4 kB / 420.6 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.2512, allocations: 80 kB / 420.7 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001757/0.2514, allocations: 124 kB / 420.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000413/0.2518, allocations: 0.5921 MB / 421.4 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005573/0.2524, allocations: 0.7337 MB / 422.2 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00168/0.2541, allocations: 2.13 MB / 424.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2541, allocations: 0 / 424.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2541, allocations: 0 / 424.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.2541, allocations: 4 kB / 424.3 MB, free: 3.168 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002836/0.257, allocations: 2.083 MB / 426.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.257, allocations: 8.031 kB / 426.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002264/0.2573, allocations: 186.6 kB / 426.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001947/0.2592, allocations: 1.506 MB / 428.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.589e-05/0.2593, allocations: 66.7 kB / 428.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.396e-05/0.2594, allocations: 44 kB / 428.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.2604, allocations: 0.5888 MB / 428.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.2604, allocations: 4 kB / 428.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.07e-05/0.2605, allocations: 31.88 kB / 428.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.2605, allocations: 12 kB / 428.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007002/0.2612, allocations: 347.7 kB / 429.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003888/0.2651, allocations: 3.235 MB / 432.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.2662, allocations: 385.3 kB / 432.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004516/0.2667, allocations: 184.1 kB / 432.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.492e-05/0.2667, allocations: 8 kB / 433 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.2668, allocations: 34.56 kB / 433 MB, free: 10.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.582e-06/0.2668, allocations: 0 / 433 MB, free: 10.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001779/0.2686, allocations: 0.6967 MB / 433.7 MB, free: 9.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.445e-05/0.2687, allocations: 205.6 kB / 433.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003403/0.2721, allocations: 2.904 MB / 436.8 MB, free: 6.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.2721, allocations: 33.7 kB / 436.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000654/0.2728, allocations: 0.7854 MB / 437.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.271e-05/0.2728, allocations: 74.91 kB / 437.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.273, allocations: 70.02 kB / 437.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.2731, allocations: 314 kB / 438.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003451/0.2734, allocations: 124.6 kB / 438.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004301/0.2739, allocations: 292.7 kB / 438.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006958/0.2746, allocations: 357.5 kB / 438.8 MB, free: 4.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2746, allocations: 4 kB / 438.8 MB, free: 4.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001089/0.2757, allocations: 0.5587 MB / 439.4 MB, free: 3.516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.2757, allocations: 8 kB / 439.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.2757, allocations: 4 kB / 439.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002575/0.276, allocations: 68.92 kB / 439.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/0.2763, allocations: 71.91 kB / 439.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.2779, allocations: 1.716 MB / 441.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00042/0.2783, allocations: 71.59 kB / 441.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.2783, allocations: 12 kB / 441.3 MB, free: 1.43 MB / 350.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.0006/0.2789, allocations: 0.5795 MB / 441.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001945/0.2791, allocations: 169.9 kB / 442.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/0.2803, allocations: 0.5064 MB / 442.6 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.2803, allocations: 0 / 442.6 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2803, allocations: 0 / 442.6 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005344/0.2809, allocations: 379.1 kB / 442.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.281, allocations: 15.94 kB / 443 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000439/0.2815, allocations: 47.95 kB / 443 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.213e-05/0.2815, allocations: 27.95 kB / 443 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00159/0.2831, allocations: 0.5282 MB / 443.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001179/0.2843, allocations: 0.6987 MB / 444.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003108/0.2847, allocations: 127.9 kB / 444.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002574/0.2872, allocations: 2.079 MB / 446.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of Backend: time 4.21e-07/0.2873, allocations: 0 / 446.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002239/0.2895, allocations: 0.8376 MB / 447.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of SimCode: time 0.004538/0.294, allocations: 3.47 MB / 450.8 MB, free: 7.965 MB / 366.1 MB Notification: Performance of Templates: time 0.02725/0.3213, allocations: 16.29 MB / 467.1 MB, free: 7.75 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches