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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001808/0.001808, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002442/0.002442, allocations: 214.7 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 63.89 kB / 377.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.291, allocations: 53.41 MB / 431.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.009266/0.3003, allocations: 5.914 MB / 437.1 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005787/0.3061, allocations: 2.757 MB / 439.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001091/0.3071, allocations: 27.81 kB / 439.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002291/0.3094, allocations: 0.7734 MB / 440.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001859/0.3113, allocations: 0.5594 MB / 441.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00158/0.3129, allocations: 0.5179 MB / 441.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002521/0.3154, allocations: 1.606 MB / 443.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009803/0.3164, allocations: 403.1 kB / 443.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.3174, allocations: 0.6345 MB / 444.4 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00103/0.3185, allocations: 0.7744 MB / 445.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002105/0.3187, allocations: 132 kB / 445.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004241/0.3191, allocations: 215.9 kB / 445.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006171/0.3197, allocations: 0.6466 MB / 446.1 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009745/0.3207, allocations: 0.9282 MB / 447 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002789/0.3235, allocations: 2.506 MB / 449.6 MB, free: 4.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3235, allocations: 0 / 449.6 MB, free: 4.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3235, allocations: 0 / 449.6 MB, free: 4.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.494e-05/0.3235, allocations: 4 kB / 449.6 MB, free: 4.211 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.005149/0.3287, allocations: 2.577 MB / 452.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.3287, allocations: 8.031 kB / 452.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002823/0.329, allocations: 143.5 kB / 452.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003786/0.3294, allocations: 231.5 kB / 452.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00273/0.3321, allocations: 1.503 MB / 454 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.3323, allocations: 143.7 kB / 454.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.3324, allocations: 91.7 kB / 454.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002015/0.3344, allocations: 1.111 MB / 455.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.3344, allocations: 7.938 kB / 455.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.27e-05/0.3345, allocations: 36 kB / 455.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.713e-05/0.3345, allocations: 24 kB / 455.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001475/0.336, allocations: 0.7221 MB / 456.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007422/0.3434, allocations: 4.53 MB / 460.7 MB, free: 8.727 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.3446, allocations: 0.5232 MB / 461.2 MB, free: 8.195 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008309/0.3454, allocations: 359.8 kB / 461.5 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.664e-05/0.3455, allocations: 8 kB / 461.5 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001022/0.3456, allocations: 42.56 kB / 461.6 MB, free: 7.785 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.554e-06/0.3456, allocations: 0 / 461.6 MB, free: 7.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001812/0.3474, allocations: 0.8259 MB / 462.4 MB, free: 6.953 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003052/0.3477, allocations: 427.2 kB / 462.8 MB, free: 6.438 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003825/0.3515, allocations: 2.76 MB / 465.6 MB, free: 3.637 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.661e-05/0.3516, allocations: 45.7 kB / 465.6 MB, free: 3.586 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009124/0.3525, allocations: 0.8914 MB / 466.5 MB, free: 2.688 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.3526, allocations: 166.6 kB / 466.7 MB, free: 2.523 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/0.3528, allocations: 122.2 kB / 466.8 MB, free: 2.398 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.353, allocations: 334 kB / 467.1 MB, free: 2.066 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005592/0.3536, allocations: 257.1 kB / 467.4 MB, free: 1.816 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009195/0.3545, allocations: 0.5324 MB / 467.9 MB, free: 1.164 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.3556, allocations: 0.6132 MB / 468.5 MB, free: 484 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3556, allocations: 4 kB / 468.5 MB, free: 480 kB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001876/0.3575, allocations: 0.8622 MB / 469.4 MB, free: 15.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.146e-05/0.3575, allocations: 8 kB / 469.4 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.641e-05/0.3575, allocations: 8 kB / 469.4 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.796e-05/0.3576, allocations: 8 kB / 469.4 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005908/0.3582, allocations: 163.5 kB / 469.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.925e-05/0.3582, allocations: 11.94 kB / 469.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009808/0.3592, allocations: 159.6 kB / 469.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.513e-05/0.3592, allocations: 28 kB / 469.8 MB, free: 15.22 MB / 382.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.0009648/0.3602, allocations: 0.5665 MB / 470.3 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002603/0.3604, allocations: 190.8 kB / 470.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001425/0.3619, allocations: 0.6991 MB / 471.2 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.3619, allocations: 7.938 kB / 471.2 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3619, allocations: 0 / 471.2 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3619, allocations: 0 / 471.2 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003885/0.3658, allocations: 2.101 MB / 473.3 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.3658, allocations: 7.938 kB / 473.3 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004794/0.3663, allocations: 112 kB / 473.5 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.3663, allocations: 4 kB / 473.5 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.658e-05/0.3663, allocations: 12 kB / 473.5 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.3663, allocations: 4 kB / 473.5 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3663, allocations: 0 / 473.5 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001937/0.3682, allocations: 1.056 MB / 474.5 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007866/0.369, allocations: 342.6 kB / 474.9 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000241/0.3693, allocations: 16 kB / 474.9 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009724/0.3702, allocations: 143.8 kB / 475 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003008/0.3705, allocations: 147.7 kB / 475.2 MB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-05/0.3706, allocations: 27.98 kB / 475.2 MB, free: 9.691 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002751/0.3733, allocations: 1.964 MB / 477.2 MB, free: 7.707 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3733, allocations: 0 / 477.2 MB, free: 7.707 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001043/0.3744, allocations: 319.3 kB / 477.5 MB, free: 7.395 MB / 382.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.003911/0.3783, allocations: 1.966 MB / 479.4 MB, free: 5.551 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.3797, allocations: 0.5688 MB / 480 MB, free: 4.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.3797, allocations: 0 / 480 MB, free: 4.984 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006537/0.3803, allocations: 340.5 kB / 480.3 MB, free: 4.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.3817, allocations: 314 kB / 480.6 MB, free: 4.344 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02771/0.4094, allocations: 17.26 MB / 497.9 MB, free: 2.699 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001441/0.4108, allocations: 1.444 MB / 499.4 MB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009112/0.4117, allocations: 291.1 kB / 499.6 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/0.4128, allocations: 0.7062 MB / 0.4886 GB, free: 232 kB / 398.1 MB Notification: Performance of SimCode: time 1.223e-06/0.4128, allocations: 0 / 0.4886 GB, free: 232 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09707/0.5099, allocations: 39.6 MB / 0.5273 GB, free: 8.812 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.73/15.24, allocations: 12 kB / 0.5273 GB, free: 8.801 MB / 446.1 MB " [Timeout remaining time 645] (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 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 21.768756669014692]