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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 114 kB / 17.06 MB, free: 5.977 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.001627/0.001628, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.584/1.584, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 55.84 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2254, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006654/0.2321, allocations: 5.798 MB / 406 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003577/0.2357, allocations: 2.575 MB / 408.6 MB, free: 416 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004061/0.2361, allocations: 27.88 kB / 408.6 MB, free: 388 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.2375, allocations: 0.7622 MB / 409.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008201/0.2383, allocations: 0.5088 MB / 409.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.2398, allocations: 0.5166 MB / 410.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002249/0.2421, allocations: 1.59 MB / 412 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0011/0.2432, allocations: 0.6039 MB / 412.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009328/0.2442, allocations: 0.6073 MB / 413.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001149/0.2453, allocations: 0.7432 MB / 414 MB, free: 11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001579/0.2455, allocations: 132 kB / 414.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003269/0.2458, allocations: 204 kB / 414.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004406/0.2463, allocations: 0.6426 MB / 414.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006421/0.2469, allocations: 0.9166 MB / 415.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001822/0.2488, allocations: 2.484 MB / 418.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2488, allocations: 0 / 418.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2488, allocations: 0 / 418.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.03e-05/0.2488, allocations: 0 / 418.3 MB, free: 6.617 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.004189/0.253, allocations: 2.567 MB / 420.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.253, allocations: 8.031 kB / 420.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001411/0.2532, allocations: 139.5 kB / 421 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002701/0.2535, allocations: 222.3 kB / 421.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002112/0.2556, allocations: 1.542 MB / 422.8 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.525e-05/0.2557, allocations: 96.02 kB / 422.9 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.2558, allocations: 87.91 kB / 423 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.2574, allocations: 1.1 MB / 424.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.2574, allocations: 8 kB / 424.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.667e-05/0.2575, allocations: 36 kB / 424.1 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.2575, allocations: 24 kB / 424.2 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.2587, allocations: 0.7144 MB / 424.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005701/0.2644, allocations: 4.587 MB / 429.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.2656, allocations: 0.9355 MB / 430.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006744/0.2663, allocations: 390 kB / 430.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.968e-05/0.2663, allocations: 4 kB / 430.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.2664, allocations: 54.48 kB / 430.8 MB, free: 9.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.034e-06/0.2664, allocations: 0 / 430.8 MB, free: 9.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001522/0.2679, allocations: 0.8084 MB / 431.6 MB, free: 8.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001472/0.268, allocations: 431.2 kB / 432.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002863/0.2709, allocations: 2.735 MB / 434.8 MB, free: 5.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.345e-05/0.271, allocations: 37.7 kB / 434.8 MB, free: 5.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000594/0.2716, allocations: 0.8784 MB / 435.7 MB, free: 4.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.2717, allocations: 161.7 kB / 435.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001813/0.2719, allocations: 122.2 kB / 436 MB, free: 4.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.066e-05/0.272, allocations: 333.9 kB / 436.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004947/0.2725, allocations: 261.1 kB / 436.6 MB, free: 3.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006342/0.2731, allocations: 0.5324 MB / 437.1 MB, free: 3.062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009277/0.2741, allocations: 0.6133 MB / 437.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.2741, allocations: 7.938 kB / 437.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001377/0.2755, allocations: 0.8492 MB / 438.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.2755, allocations: 8 kB / 438.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.2755, allocations: 8 kB / 438.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.2755, allocations: 8 kB / 438.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005677/0.2761, allocations: 167.9 kB / 438.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.2761, allocations: 8 kB / 438.8 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009187/0.277, allocations: 159.1 kB / 438.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-05/0.2771, allocations: 32 kB / 438.9 MB, free: 1.121 MB / 350.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.0005952/0.2777, allocations: 0.556 MB / 439.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/0.2779, allocations: 177.8 kB / 439.7 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001229/0.2791, allocations: 0.7001 MB / 440.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.2792, allocations: 7.938 kB / 440.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2792, allocations: 0 / 440.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.2792, allocations: 7.984 kB / 440.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002974/0.2822, allocations: 2.113 MB / 442.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.2822, allocations: 4 kB / 442.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004663/0.2826, allocations: 107.9 kB / 442.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.2827, allocations: 0 / 442.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.575e-05/0.2827, allocations: 12 kB / 442.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.2827, allocations: 7.969 kB / 442.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.2827, allocations: 12.03 kB / 442.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.2843, allocations: 1.043 MB / 443.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000709/0.285, allocations: 402.8 kB / 444.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001514/0.2852, allocations: 15.98 kB / 444.1 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009781/0.2862, allocations: 139.8 kB / 444.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002758/0.2864, allocations: 159.6 kB / 444.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.834e-05/0.2865, allocations: 20 kB / 444.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002183/0.2887, allocations: 1.947 MB / 446.4 MB, free: 9.547 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2887, allocations: 0 / 446.4 MB, free: 9.547 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007516/0.2894, allocations: 315.3 kB / 446.7 MB, free: 9.238 MB / 366.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.002722/0.2922, allocations: 1.958 MB / 448.6 MB, free: 7.422 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.2933, allocations: 0.5851 MB / 449.2 MB, free: 6.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.2933, allocations: 4.375 kB / 449.2 MB, free: 6.836 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000582/0.2939, allocations: 343.5 kB / 449.5 MB, free: 6.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.2952, allocations: 334.5 kB / 449.9 MB, free: 6.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02181/0.317, allocations: 17.13 MB / 467 MB, free: 4.664 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008913/0.318, allocations: 1.433 MB / 468.4 MB, free: 3.203 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007254/0.3187, allocations: 294.8 kB / 468.7 MB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000794/0.3195, allocations: 0.6984 MB / 469.4 MB, free: 2.211 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3195, allocations: 0 / 469.4 MB, free: 2.211 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.624/4.944, allocations: 39.49 MB / 0.497 GB, free: 11.05 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.54/23.48, allocations: 4.719 kB / 0.497 GB, free: 11.05 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > 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