Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001483/0.001483, allocations: 117.7 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001897/0.001897, allocations: 204.6 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3097, allocations: 50.54 MB / 408.7 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007051/0.3168, allocations: 5.85 MB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004075/0.3209, allocations: 2.735 MB / 417.3 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004897/0.3214, allocations: 23.88 kB / 417.4 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001502/0.3229, allocations: 0.77 MB / 418.1 MB, free: 8.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0011/0.324, allocations: 0.5555 MB / 418.7 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.3251, allocations: 0.4946 MB / 419.2 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00171/0.3268, allocations: 1.606 MB / 420.8 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008399/0.3277, allocations: 0.6039 MB / 421.4 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00083/0.3285, allocations: 0.6151 MB / 422 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008323/0.3294, allocations: 0.7393 MB / 422.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001653/0.3295, allocations: 132 kB / 422.9 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003702/0.3299, allocations: 208 kB / 423.1 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004841/0.3304, allocations: 0.6465 MB / 423.7 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007373/0.3311, allocations: 0.9282 MB / 424.6 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002124/0.3333, allocations: 2.492 MB / 427.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3333, allocations: 0 / 427.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3333, allocations: 0 / 427.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.961e-05/0.3333, allocations: 0 / 427.1 MB, free: 15.02 MB / 350.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.004759/0.3381, allocations: 2.587 MB / 429.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.3382, allocations: 15.97 kB / 429.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001679/0.3383, allocations: 135.5 kB / 429.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003213/0.3387, allocations: 226.2 kB / 430.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002342/0.341, allocations: 1.551 MB / 431.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.3411, allocations: 100 kB / 431.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.3413, allocations: 88 kB / 431.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.343, allocations: 1.1 MB / 432.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.3431, allocations: 0 / 432.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.404e-05/0.3431, allocations: 40 kB / 433 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.3432, allocations: 27.98 kB / 433 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.3444, allocations: 0.7143 MB / 433.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006277/0.3507, allocations: 4.583 MB / 438.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.3519, allocations: 0.9497 MB / 439.2 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007137/0.3527, allocations: 378 kB / 439.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.23e-05/0.3527, allocations: 11.98 kB / 439.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.3528, allocations: 42.56 kB / 439.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.354e-06/0.3528, allocations: 4 kB / 439.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001702/0.3545, allocations: 0.8199 MB / 440.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001655/0.3547, allocations: 427.2 kB / 440.9 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003257/0.3579, allocations: 2.76 MB / 443.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.355e-05/0.358, allocations: 41.7 kB / 443.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006731/0.3587, allocations: 0.8785 MB / 444.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.3588, allocations: 153.8 kB / 444.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001943/0.359, allocations: 134.1 kB / 444.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3591, allocations: 330 kB / 445.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005129/0.3597, allocations: 249.2 kB / 445.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006969/0.3604, allocations: 0.5402 MB / 446 MB, free: 11.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.3614, allocations: 0.6094 MB / 446.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3614, allocations: 8 kB / 446.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001536/0.363, allocations: 0.8489 MB / 447.4 MB, free: 9.832 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.363, allocations: 8.594 kB / 447.4 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.363, allocations: 8 kB / 447.5 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.494e-05/0.363, allocations: 15.98 kB / 447.5 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005844/0.3636, allocations: 159.7 kB / 447.6 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.49e-05/0.3637, allocations: 15.92 kB / 447.6 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.3647, allocations: 155.2 kB / 447.8 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.023e-05/0.3647, allocations: 28 kB / 447.8 MB, free: 9.449 MB / 366.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.0007224/0.3655, allocations: 0.5544 MB / 448.4 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002691/0.3657, allocations: 185.7 kB / 448.6 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/0.3671, allocations: 0.7002 MB / 449.3 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.3671, allocations: 11.88 kB / 449.3 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3672, allocations: 0 / 449.3 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.3672, allocations: 7.922 kB / 449.3 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003634/0.3708, allocations: 2.125 MB / 451.4 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.3708, allocations: 4 kB / 451.4 MB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004888/0.3713, allocations: 103.9 kB / 451.5 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.3714, allocations: 96 / 451.5 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.26e-05/0.3714, allocations: 19.98 kB / 451.5 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.3714, allocations: 0 / 451.5 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3714, allocations: 4 kB / 451.5 MB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.3733, allocations: 1.055 MB / 452.6 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008964/0.3742, allocations: 410.6 kB / 453 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000242/0.3744, allocations: 16 kB / 453 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.3756, allocations: 135.8 kB / 453.1 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003287/0.3759, allocations: 155.7 kB / 453.3 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.757e-05/0.376, allocations: 16 kB / 453.3 MB, free: 3.828 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003046/0.379, allocations: 1.96 MB / 455.3 MB, free: 1.848 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.379, allocations: 0 / 455.3 MB, free: 1.848 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009695/0.38, allocations: 319.3 kB / 455.6 MB, free: 1.535 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.00309/0.3831, allocations: 1.965 MB / 457.5 MB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.3844, allocations: 0.5931 MB / 458.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.3844, allocations: 0 / 458.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006236/0.385, allocations: 347.4 kB / 458.5 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001543/0.3866, allocations: 332.2 kB / 458.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02554/0.4121, allocations: 17.18 MB / 476 MB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001228/0.4134, allocations: 1.445 MB / 477.4 MB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008052/0.4142, allocations: 295.1 kB / 477.7 MB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008942/0.4152, allocations: 0.7062 MB / 478.4 MB, free: 10.41 MB / 398.1 MB Notification: Performance of SimCode: time 2.234e-06/0.4152, allocations: 0 / 478.4 MB, free: 10.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09759/0.5128, allocations: 39.6 MB / 0.5059 GB, free: 3.078 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.41, allocations: 11.75 kB / 0.5059 GB, free: 3.066 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches