Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 105.8 kB / 17.59 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001822/0.001823, allocations: 195.2 kB / 18.52 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 50.52 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08857/0.08969, allocations: 49.45 MB / 350.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007127/0.09685, allocations: 5.802 MB / 356.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004282/0.1012, allocations: 2.563 MB / 359.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007758/0.102, allocations: 23.94 kB / 359.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001705/0.1037, allocations: 0.7738 MB / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001321/0.1051, allocations: 0.5049 MB / 360.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001384/0.1065, allocations: 0.5075 MB / 360.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002078/0.1086, allocations: 1.575 MB / 362.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.1096, allocations: 0.6039 MB / 363.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001043/0.1106, allocations: 0.6073 MB / 363.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001141/0.1118, allocations: 0.7432 MB / 364.4 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000334/0.1121, allocations: 132 kB / 364.6 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005723/0.1127, allocations: 212 kB / 364.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006051/0.1133, allocations: 0.6426 MB / 365.4 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00117/0.1145, allocations: 0.9166 MB / 366.3 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002261/0.1168, allocations: 2.449 MB / 368.8 MB, free: 2.273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1168, allocations: 0 / 368.8 MB, free: 2.273 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1168, allocations: 0 / 368.8 MB, free: 2.273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.399e-05/0.1169, allocations: 0 / 368.8 MB, free: 2.273 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.1813/0.2982, allocations: 2.56 MB / 371.3 MB, free: 24.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.331e-05/0.2983, allocations: 9 kB / 371.3 MB, free: 24.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007353/0.299, allocations: 221.2 kB / 371.6 MB, free: 24.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002867/0.3019, allocations: 1.519 MB / 373.1 MB, free: 23.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005317/0.3025, allocations: 174.1 kB / 373.3 MB, free: 23.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.3026, allocations: 83.5 kB / 373.3 MB, free: 23.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.3047, allocations: 1.131 MB / 374.5 MB, free: 23.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.3048, allocations: 3.938 kB / 374.5 MB, free: 23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.901e-05/0.3048, allocations: 40.94 kB / 374.5 MB, free: 22.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.834e-05/0.3049, allocations: 20.19 kB / 374.5 MB, free: 22.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.3063, allocations: 0.7407 MB / 375.3 MB, free: 22.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007984/0.3143, allocations: 4.658 MB / 379.9 MB, free: 20.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/0.3158, allocations: 0.9884 MB / 380.9 MB, free: 19.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008602/0.3167, allocations: 408.1 kB / 381.3 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.955e-05/0.3168, allocations: 4.031 kB / 381.3 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.3168, allocations: 45.22 kB / 381.4 MB, free: 19.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.965e-06/0.3168, allocations: 4 kB / 381.4 MB, free: 19.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002527/0.3194, allocations: 0.8819 MB / 382.2 MB, free: 18.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.3195, allocations: 419.1 kB / 382.7 MB, free: 18.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004363/0.3239, allocations: 2.746 MB / 385.4 MB, free: 17.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001356/0.3241, allocations: 42.42 kB / 385.4 MB, free: 17.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006919/0.3248, allocations: 0.8762 MB / 386.3 MB, free: 16.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.3249, allocations: 156.6 kB / 386.5 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.3252, allocations: 125 kB / 386.6 MB, free: 16.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.764e-05/0.3252, allocations: 338 kB / 386.9 MB, free: 16.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006851/0.3259, allocations: 282.2 kB / 387.2 MB, free: 16.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007627/0.3267, allocations: 0.5509 MB / 387.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.3279, allocations: 0.6548 MB / 388.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.3279, allocations: 1.469 kB / 388.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002193/0.3301, allocations: 0.8955 MB / 389.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.3301, allocations: 11.84 kB / 389.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.3301, allocations: 5.969 kB / 389.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.995e-05/0.3302, allocations: 8.812 kB / 389.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006323/0.3308, allocations: 173.1 kB / 389.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.3308, allocations: 7.875 kB / 389.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.3324, allocations: 170.2 kB / 389.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-05/0.3325, allocations: 31.52 kB / 389.7 MB, free: 14.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001086/0.3336, allocations: 0.5605 MB / 390.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003142/0.3339, allocations: 182.2 kB / 390.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/0.3354, allocations: 0.7399 MB / 391.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.3354, allocations: 3.281 kB / 391.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3354, allocations: 1.312 kB / 391.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.3354, allocations: 0 / 391.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003409/0.3388, allocations: 2.178 MB / 393.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.3389, allocations: 2.875 kB / 393.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000518/0.3394, allocations: 124 kB / 393.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/0.3394, allocations: 2.469 kB / 393.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.664e-05/0.3395, allocations: 16.98 kB / 393.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.3395, allocations: 2.531 kB / 393.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.3395, allocations: 1.594 kB / 393.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/0.3414, allocations: 1.114 MB / 394.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005904/0.342, allocations: 409 kB / 395 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/0.3422, allocations: 11.97 kB / 395 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.3433, allocations: 149.8 kB / 395.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002755/0.3435, allocations: 154.6 kB / 395.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/0.3436, allocations: 23.92 kB / 395.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002119/0.3457, allocations: 1.943 MB / 397.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3457, allocations: 2.516 kB / 397.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008543/0.3466, allocations: 317.3 kB / 397.6 MB, free: 8.977 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001084/0.3477, allocations: 486.9 kB / 398.1 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.3491, allocations: 0.6797 MB / 398.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.3491, allocations: 0 / 398.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006674/0.3498, allocations: 372.2 kB / 399.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/0.3512, allocations: 323.4 kB / 399.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004718/0.356, allocations: 3.588 MB / 403 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007251/0.3567, allocations: 1.429 MB / 404.5 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000414/0.3571, allocations: 115.4 kB / 404.6 MB, free: 2.164 MB / 302.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3571, allocations: 0 / 404.6 MB, free: 2.164 MB / 302.1 MB Notification: Performance of Templates: time 0.03493/0.3921, allocations: 23 MB / 427.6 MB, free: 11.25 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches