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.001527/0.001527, allocations: 113 kB / 17.68 MB, free: 5.473 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.001644/0.001644, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.35/1.35, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 60.27 kB / 302 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1019, allocations: 49.44 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006676/0.1087, allocations: 5.813 MB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003826/0.1125, allocations: 2.556 MB / 359.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004317/0.113, allocations: 23.88 kB / 359.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001449/0.1145, allocations: 0.7739 MB / 360.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008271/0.1153, allocations: 0.5088 MB / 361.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.1163, allocations: 0.506 MB / 361.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001492/0.1178, allocations: 1.582 MB / 363.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007039/0.1185, allocations: 0.6077 MB / 363.9 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006061/0.1191, allocations: 0.6073 MB / 364.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008686/0.12, allocations: 0.7393 MB / 365.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000171/0.1202, allocations: 132 kB / 365.3 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003588/0.1206, allocations: 215.9 kB / 365.5 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005568/0.1211, allocations: 0.6349 MB / 366.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007805/0.1219, allocations: 0.9205 MB / 367.1 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00198/0.1239, allocations: 2.476 MB / 369.6 MB, free: 1.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1239, allocations: 0 / 369.6 MB, free: 1.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1239, allocations: 0 / 369.6 MB, free: 1.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.439e-05/0.124, allocations: 0 / 369.6 MB, free: 1.52 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.1815/0.3054, allocations: 2.565 MB / 372.1 MB, free: 24.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.3055, allocations: 10.28 kB / 372.2 MB, free: 24.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003343/0.3058, allocations: 222.6 kB / 372.4 MB, free: 24.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002583/0.3084, allocations: 1.536 MB / 373.9 MB, free: 23.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.3086, allocations: 100.3 kB / 374 MB, free: 23.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.3087, allocations: 79.73 kB / 374.1 MB, free: 23.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001835/0.3106, allocations: 1.106 MB / 375.2 MB, free: 23.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.3106, allocations: 8.5 kB / 375.2 MB, free: 23.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.847e-05/0.3107, allocations: 38 kB / 375.2 MB, free: 22.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.3107, allocations: 21.72 kB / 375.3 MB, free: 22.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.3121, allocations: 0.7165 MB / 376 MB, free: 22.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007165/0.3193, allocations: 4.584 MB / 380.6 MB, free: 20.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.3206, allocations: 0.9431 MB / 381.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006863/0.3213, allocations: 388.7 kB / 381.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.633e-05/0.3213, allocations: 10.34 kB / 381.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.3214, allocations: 43.62 kB / 381.9 MB, free: 19.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.314e-06/0.3214, allocations: 0 / 381.9 MB, free: 19.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.00188/0.3233, allocations: 0.8146 MB / 382.7 MB, free: 19.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.3234, allocations: 423.5 kB / 383.2 MB, free: 18.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004022/0.3274, allocations: 2.746 MB / 385.9 MB, free: 17.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.872e-05/0.3275, allocations: 42.58 kB / 385.9 MB, free: 17.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007206/0.3283, allocations: 0.8717 MB / 386.8 MB, free: 16.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.3284, allocations: 160.5 kB / 387 MB, free: 16.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002213/0.3286, allocations: 120.8 kB / 387.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.059e-05/0.3287, allocations: 337.5 kB / 387.4 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005265/0.3293, allocations: 257.8 kB / 387.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000694/0.33, allocations: 0.5294 MB / 388.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009925/0.331, allocations: 0.6146 MB / 388.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.331, allocations: 2.125 kB / 388.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001706/0.3327, allocations: 0.8514 MB / 389.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.3327, allocations: 6.75 kB / 389.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.3327, allocations: 11.3 kB / 389.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.3328, allocations: 9.125 kB / 389.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000554/0.3333, allocations: 163.2 kB / 389.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/0.3334, allocations: 12.03 kB / 389.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009894/0.3343, allocations: 157.3 kB / 390 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.596e-05/0.3344, allocations: 27.69 kB / 390 MB, free: 14.85 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.000747/0.3352, allocations: 0.5644 MB / 390.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/0.3354, allocations: 179.3 kB / 390.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001319/0.3368, allocations: 0.6915 MB / 391.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.3368, allocations: 8.109 kB / 391.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.3368, allocations: 1.375 kB / 391.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3368, allocations: 0 / 391.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003438/0.3402, allocations: 2.123 MB / 393.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3403, allocations: 1.375 kB / 393.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004617/0.3407, allocations: 112.9 kB / 393.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.3407, allocations: 3.688 kB / 393.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.3408, allocations: 12.91 kB / 393.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.3408, allocations: 3.406 kB / 393.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3408, allocations: 3.969 kB / 393.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.3424, allocations: 1.047 MB / 394.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007481/0.3431, allocations: 408.6 kB / 395.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.3433, allocations: 11.94 kB / 395.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008774/0.3442, allocations: 142.8 kB / 395.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002559/0.3445, allocations: 153.2 kB / 395.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.824e-05/0.3445, allocations: 19.98 kB / 395.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001894/0.3464, allocations: 1.947 MB / 397.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3464, allocations: 4 kB / 397.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007518/0.3472, allocations: 315 kB / 397.8 MB, free: 9.215 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.001087/0.3483, allocations: 484.4 kB / 398.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.3493, allocations: 0.5804 MB / 398.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.3493, allocations: 1.125 kB / 398.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000524/0.3499, allocations: 351.6 kB / 399.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.3511, allocations: 326 kB / 399.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004121/0.3552, allocations: 3.465 MB / 403 MB, free: 4.219 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008508/0.3561, allocations: 1.437 MB / 404.4 MB, free: 2.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006252/0.3567, allocations: 298.8 kB / 404.7 MB, free: 2.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002662/0.357, allocations: 103.4 kB / 404.8 MB, free: 2.352 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.357, allocations: 0 / 404.8 MB, free: 2.352 MB / 302.1 MB Notification: Performance of Templates: time 0.03586/0.3929, allocations: 21.15 MB / 425.9 MB, free: 13.41 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 -s gbode -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