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.001574/0.001574, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002075/0.002075, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.489/1.489, allocations: 230.5 MB / 258.2 MB, free: 7.82 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 63.89 kB / 378.5 MB, free: 2.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2843, allocations: 53.4 MB / 431.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007188/0.2915, allocations: 5.207 MB / 437.1 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004936/0.2965, allocations: 2.596 MB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00076/0.2972, allocations: 31.81 kB / 439.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.2991, allocations: 0.7466 MB / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001523/0.3007, allocations: 0.5633 MB / 441 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001265/0.3019, allocations: 0.5169 MB / 441.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002212/0.3041, allocations: 1.601 MB / 443.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007016/0.3048, allocations: 403.1 kB / 443.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009978/0.3058, allocations: 0.6307 MB / 444.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001091/0.3069, allocations: 0.7744 MB / 445 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002066/0.3071, allocations: 132 kB / 445.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004323/0.3076, allocations: 215.9 kB / 445.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006074/0.3082, allocations: 0.6543 MB / 446 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008063/0.309, allocations: 0.7147 MB / 446.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002793/0.3118, allocations: 2.529 MB / 449.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3118, allocations: 0 / 449.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3118, allocations: 4 kB / 449.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.313e-05/0.3118, allocations: 0 / 449.2 MB, free: 5.09 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.005461/0.3173, allocations: 2.573 MB / 451.8 MB, free: 2.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.3173, allocations: 15.97 kB / 451.8 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.31e-05/0.3174, allocations: 22.19 kB / 451.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001734/0.3175, allocations: 139.5 kB / 451.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003764/0.3179, allocations: 235.4 kB / 452.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002495/0.3204, allocations: 1.502 MB / 453.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.3206, allocations: 147.7 kB / 453.8 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.3207, allocations: 84.12 kB / 453.9 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.3229, allocations: 1.717 MB / 455.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.3229, allocations: 0 / 455.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.566e-05/0.323, allocations: 44 kB / 455.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.926e-05/0.323, allocations: 20 kB / 455.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.3244, allocations: 0.7143 MB / 456.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006726/0.3311, allocations: 4.187 MB / 460.6 MB, free: 9.188 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.3323, allocations: 0.5231 MB / 461.1 MB, free: 8.656 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007284/0.3331, allocations: 358.2 kB / 461.5 MB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.142e-05/0.3331, allocations: 7.938 kB / 461.5 MB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.3332, allocations: 42.56 kB / 461.5 MB, free: 8.246 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.494e-06/0.3332, allocations: 0 / 461.5 MB, free: 8.246 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001826/0.335, allocations: 0.8221 MB / 462.3 MB, free: 7.418 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002321/0.3352, allocations: 423.2 kB / 462.7 MB, free: 6.906 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003687/0.3389, allocations: 2.767 MB / 465.5 MB, free: 4.098 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.43e-05/0.339, allocations: 37.7 kB / 465.5 MB, free: 4.055 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000815/0.3398, allocations: 0.8953 MB / 466.4 MB, free: 3.152 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001534/0.3399, allocations: 162.6 kB / 466.6 MB, free: 2.992 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002356/0.3402, allocations: 134.2 kB / 466.7 MB, free: 2.855 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3403, allocations: 322 kB / 467 MB, free: 2.535 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005417/0.3409, allocations: 261.1 kB / 467.3 MB, free: 2.281 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000966/0.3418, allocations: 0.8878 MB / 468.2 MB, free: 1.188 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.3429, allocations: 0.6133 MB / 468.8 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.3429, allocations: 4 kB / 468.8 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001642/0.3445, allocations: 0.8584 MB / 469.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3446, allocations: 8 kB / 469.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.3446, allocations: 8.062 kB / 469.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.3446, allocations: 8 kB / 469.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005881/0.3452, allocations: 159.7 kB / 469.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.3452, allocations: 15.73 kB / 469.9 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000911/0.3461, allocations: 163.4 kB / 470 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.019e-05/0.3462, allocations: 28 kB / 470 MB, free: 15.25 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.0007592/0.3469, allocations: 0.556 MB / 470.6 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.3472, allocations: 194.8 kB / 470.8 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001432/0.3486, allocations: 0.6991 MB / 471.5 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.3486, allocations: 4 kB / 471.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3486, allocations: 11.88 kB / 471.5 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.3486, allocations: 7.922 kB / 471.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003204/0.3518, allocations: 1.887 MB / 473.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3518, allocations: 4 kB / 473.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004895/0.3523, allocations: 103.9 kB / 473.5 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.687e-06/0.3523, allocations: 7.984 kB / 473.5 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.049e-05/0.3524, allocations: 16 kB / 473.5 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.3524, allocations: 0 / 473.5 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3524, allocations: 7.938 kB / 473.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.3542, allocations: 1.056 MB / 474.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006812/0.3548, allocations: 334.6 kB / 474.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/0.355, allocations: 19.98 kB / 474.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009408/0.356, allocations: 135.8 kB / 475.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00032/0.3563, allocations: 159.7 kB / 475.2 MB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.404e-05/0.3563, allocations: 19.94 kB / 475.2 MB, free: 9.922 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002637/0.359, allocations: 1.964 MB / 477.2 MB, free: 7.938 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.359, allocations: 0 / 477.2 MB, free: 7.938 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008696/0.3598, allocations: 327.3 kB / 477.5 MB, free: 7.617 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.003832/0.3637, allocations: 2.002 MB / 479.5 MB, free: 5.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001234/0.3649, allocations: 0.5611 MB / 480.1 MB, free: 5.191 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.3649, allocations: 0 / 480.1 MB, free: 5.191 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006478/0.3656, allocations: 340.6 kB / 480.4 MB, free: 4.859 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.3669, allocations: 320.9 kB / 480.7 MB, free: 4.547 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02625/0.3931, allocations: 17.25 MB / 498 MB, free: 2.914 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009777/0.3941, allocations: 0.8535 MB / 498.8 MB, free: 2.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008087/0.3949, allocations: 287.1 kB / 499.1 MB, free: 1.734 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009683/0.3959, allocations: 0.7062 MB / 499.8 MB, free: 1.027 MB / 398.1 MB Notification: Performance of SimCode: time 1.533e-06/0.3959, allocations: 4 kB / 499.8 MB, free: 1.023 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08929/0.4852, allocations: 41.18 MB / 0.5283 GB, free: 8.082 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.33/14.82, allocations: 0 / 0.5283 GB, free: 8.082 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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 24.673510240972973]