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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001132/0.001132, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 226.8 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009757/0.0009758, allocations: 105.4 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009223/0.0009224, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2194, allocations: 50.46 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004975/0.2244, allocations: 5.523 MB / 412.6 MB, free: 22.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002232/0.2267, allocations: 1.841 MB / 414.4 MB, free: 20.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002687/0.227, allocations: 15.94 kB / 414.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008111/0.2278, allocations: 0.4944 MB / 414.9 MB, free: 19.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004898/0.2283, allocations: 350.5 kB / 415.3 MB, free: 19.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005658/0.2289, allocations: 327.7 kB / 415.6 MB, free: 19.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006098/0.2295, allocations: 0.8573 MB / 416.4 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000363/0.2299, allocations: 303.7 kB / 416.7 MB, free: 18.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002176/0.2301, allocations: 314.7 kB / 417 MB, free: 17.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002995/0.2304, allocations: 418.4 kB / 417.5 MB, free: 17.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.938e-05/0.2305, allocations: 44 kB / 417.5 MB, free: 17.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001538/0.2306, allocations: 75.98 kB / 417.6 MB, free: 17.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002591/0.2309, allocations: 0.5531 MB / 418.1 MB, free: 16.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003896/0.2313, allocations: 0.6869 MB / 418.8 MB, free: 16.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009969/0.2323, allocations: 2.059 MB / 420.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2323, allocations: 0 / 420.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2323, allocations: 0 / 420.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.2323, allocations: 0 / 420.9 MB, free: 13.96 MB / 298.7 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.002688/0.235, allocations: 2.083 MB / 423 MB, free: 11.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.2351, allocations: 8.875 kB / 423 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002026/0.2353, allocations: 186.6 kB / 423.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001714/0.237, allocations: 1.494 MB / 424.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.2372, allocations: 90.67 kB / 424.7 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.194e-05/0.2373, allocations: 48 kB / 424.8 MB, free: 9.945 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000824/0.2381, allocations: 0.5854 MB / 425.4 MB, free: 9.316 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.2381, allocations: 0 / 425.4 MB, free: 9.316 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.249e-05/0.2382, allocations: 24 kB / 425.4 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.2382, allocations: 12 kB / 425.4 MB, free: 9.281 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005961/0.2388, allocations: 339.8 kB / 425.7 MB, free: 8.945 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003617/0.2424, allocations: 3.262 MB / 429 MB, free: 5.559 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.2435, allocations: 387 kB / 429.4 MB, free: 5.172 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004066/0.2439, allocations: 180.8 kB / 429.5 MB, free: 4.992 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.2439, allocations: 4 kB / 429.5 MB, free: 4.988 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.944e-05/0.244, allocations: 38.56 kB / 429.6 MB, free: 4.941 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.884e-06/0.244, allocations: 4 kB / 429.6 MB, free: 4.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001568/0.2455, allocations: 0.6958 MB / 430.3 MB, free: 4.215 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.2456, allocations: 209.6 kB / 430.5 MB, free: 3.961 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002553/0.2482, allocations: 2.897 MB / 433.4 MB, free: 1.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.2482, allocations: 33.7 kB / 433.4 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004622/0.2487, allocations: 0.7854 MB / 434.2 MB, free: 192 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.008e-05/0.2487, allocations: 78.84 kB / 434.3 MB, free: 112 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.2488, allocations: 62.03 kB / 434.3 MB, free: 44 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.249, allocations: 326 kB / 434.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003268/0.2493, allocations: 120.6 kB / 434.8 MB, free: 15.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004505/0.2498, allocations: 288.8 kB / 435.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007178/0.2505, allocations: 360.4 kB / 435.4 MB, free: 14.85 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.2505, allocations: 8 kB / 435.4 MB, free: 14.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00118/0.2517, allocations: 0.5675 MB / 436 MB, free: 14.26 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.2518, allocations: 8 kB / 436 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.2518, allocations: 4 kB / 436 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002536/0.252, allocations: 52.83 kB / 436.1 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/0.2523, allocations: 80.02 kB / 436.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001564/0.2539, allocations: 1.557 MB / 437.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004247/0.2543, allocations: 59.56 kB / 437.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.2544, allocations: 12 kB / 437.8 MB, free: 12.36 MB / 314.7 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.0006018/0.255, allocations: 0.589 MB / 438.3 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002067/0.2552, allocations: 161.9 kB / 438.5 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001136/0.2563, allocations: 0.5142 MB / 439 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.2564, allocations: 0 / 439 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.2564, allocations: 8 kB / 439 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2564, allocations: 3.984 kB / 439 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002702/0.2591, allocations: 1.692 MB / 440.7 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.2591, allocations: 4.031 kB / 440.7 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002262/0.2593, allocations: 47.97 kB / 440.8 MB, free: 9.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001606/0.2595, allocations: 52.7 kB / 440.8 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.2596, allocations: 4 kB / 440.8 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.2609, allocations: 1.506 MB / 442.3 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2609, allocations: 0 / 442.3 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009401/0.2703, allocations: 6.4 MB / 448.7 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007634/0.2711, allocations: 382.9 kB / 449.1 MB, free: 448 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.2713, allocations: 8 kB / 449.1 MB, free: 440 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000435/0.2717, allocations: 51.98 kB / 449.2 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.426e-05/0.2718, allocations: 27.95 kB / 449.2 MB, free: 360 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.2718, allocations: 4 kB / 449.2 MB, free: 356 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00257/0.2744, allocations: 2.075 MB / 451.3 MB, free: 14.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2744, allocations: 0 / 451.3 MB, free: 14.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001024/0.2755, allocations: 315.6 kB / 451.6 MB, free: 13.94 MB / 330.7 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.0008517/0.2763, allocations: 425.1 kB / 452 MB, free: 13.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.2773, allocations: 435.2 kB / 452.4 MB, free: 13.22 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.2774, allocations: 4 kB / 452.4 MB, free: 13.22 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000515/0.2779, allocations: 271.2 kB / 452.7 MB, free: 12.94 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.2789, allocations: 219.5 kB / 452.9 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005512/0.2844, allocations: 3.81 MB / 456.7 MB, free: 8.852 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/0.2855, allocations: 1.359 MB / 458.1 MB, free: 7.461 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005515/0.2861, allocations: 246.8 kB / 458.3 MB, free: 7.215 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002445/0.2863, allocations: 87.44 kB / 458.4 MB, free: 7.129 MB / 330.7 MB Notification: Performance of SimCode: time 5.1e-07/0.2863, allocations: 0 / 458.4 MB, free: 7.129 MB / 330.7 MB Notification: Performance of Templates: time 0.02788/0.3142, allocations: 15.91 MB / 474.3 MB, free: 7.285 MB / 346.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches