Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001032/0.001032, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.199/1.199, allocations: 227.2 MB / 245 MB, free: 5.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001129/0.001129, allocations: 106 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000201/0.000201, allocations: 8 kB / 358 MB, free: 9.234 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1933/0.1935, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09745/0.291, allocations: 82.28 MB / 491.8 MB, free: 8.305 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/0.2913, allocations: 75.95 kB / 491.9 MB, free: 8.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02178/0.3131, allocations: 6.422 MB / 498.3 MB, free: 1.781 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3131, allocations: 0 / 498.3 MB, free: 1.781 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.832e-05/0.3132, allocations: 8 kB / 498.3 MB, free: 1.773 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001886/0.315, allocations: 0.76 MB / 499 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.3151, allocations: 8.031 kB / 499.1 MB, free: 0.957 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.3152, allocations: 70.75 kB / 499.1 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.3154, allocations: 39.53 kB / 499.2 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007591/0.3162, allocations: 365.6 kB / 499.5 MB, free: 452 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.187e-05/0.3162, allocations: 24.66 kB / 499.5 MB, free: 428 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.98e-05/0.3163, allocations: 32 kB / 499.6 MB, free: 396 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007573/0.3171, allocations: 341.8 kB / 499.9 MB, free: 40 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.3171, allocations: 0 / 499.9 MB, free: 40 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.379e-05/0.3171, allocations: 8 kB / 499.9 MB, free: 32 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.3172, allocations: 8 kB / 499.9 MB, free: 24 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006086/0.3178, allocations: 242.4 kB / 0.4884 GB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.3203, allocations: 1.331 MB / 0.4897 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005945/0.321, allocations: 254.3 kB / 0.49 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.645e-05/0.321, allocations: 3.984 kB / 0.49 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/0.3211, allocations: 50.45 kB / 0.49 GB, free: 14.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=16): time 2.495e-06/0.3211, allocations: 0 / 0.49 GB, free: 14.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.000715/0.3218, allocations: 225.5 kB / 0.4902 GB, free: 13.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.3219, allocations: 55.41 kB / 0.4903 GB, free: 13.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005022/0.3224, allocations: 294.1 kB / 0.4906 GB, free: 13.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.303e-05/0.3224, allocations: 25.7 kB / 0.4906 GB, free: 13.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.3226, allocations: 212 kB / 0.4908 GB, free: 13.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.097e-05/0.3227, allocations: 55.2 kB / 0.4909 GB, free: 13.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.995e-05/0.3228, allocations: 8 kB / 0.4909 GB, free: 13.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3229, allocations: 334.8 kB / 0.4912 GB, free: 12.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.3231, allocations: 71.95 kB / 0.4913 GB, free: 12.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00025/0.3234, allocations: 134.7 kB / 0.4914 GB, free: 12.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.3236, allocations: 62.06 kB / 0.4914 GB, free: 12.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.3236, allocations: 0 / 0.4914 GB, free: 12.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000536/0.3241, allocations: 241.1 kB / 0.4917 GB, free: 12.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.3242, allocations: 12.17 kB / 0.4917 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.3242, allocations: 4 kB / 0.4917 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.3242, allocations: 4 kB / 0.4917 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002687/0.3245, allocations: 39.92 kB / 0.4917 GB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.3245, allocations: 7.938 kB / 0.4917 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005378/0.3251, allocations: 91.67 kB / 0.4918 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.862e-05/0.3251, allocations: 12.09 kB / 0.4918 GB, free: 12.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002215/0.3253, allocations: 153.7 kB / 0.492 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.87e-05/0.3254, allocations: 23.72 kB / 0.492 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005581/0.326, allocations: 215.7 kB / 0.4922 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.326, allocations: 0 / 0.4922 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.326, allocations: 0 / 0.4922 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.326, allocations: 4 kB / 0.4922 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.3272, allocations: 0.6229 MB / 0.4928 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.3272, allocations: 3.953 kB / 0.4928 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002147/0.3274, allocations: 31.92 kB / 0.4929 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.3274, allocations: 0 / 0.4929 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.3274, allocations: 12.03 kB / 0.4929 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3275, allocations: 0 / 0.4929 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3275, allocations: 0 / 0.4929 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004851/0.328, allocations: 385.6 kB / 0.4932 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.613e-05/0.3281, allocations: 104.8 kB / 0.4933 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.915e-05/0.3281, allocations: 4 kB / 0.4933 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004461/0.3286, allocations: 83.92 kB / 0.4934 GB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/0.3288, allocations: 75.86 kB / 0.4935 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.3288, allocations: 8 kB / 0.4935 GB, free: 10.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002439/0.329, allocations: 233.9 kB / 0.4937 GB, free: 10.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.329, allocations: 0 / 0.4937 GB, free: 10.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003706/0.3294, allocations: 87.69 kB / 0.4938 GB, free: 9.969 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008872/0.3303, allocations: 1.01 MB / 0.4948 GB, free: 8.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003368/0.3307, allocations: 181.5 kB / 0.495 GB, free: 8.758 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3307, allocations: 3.938 kB / 0.495 GB, free: 8.754 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000169/0.3309, allocations: 108.4 kB / 0.4951 GB, free: 8.648 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.3312, allocations: 44.94 kB / 0.4951 GB, free: 8.605 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.3347, allocations: 3.044 MB / 0.4981 GB, free: 5.473 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004102/0.3352, allocations: 0.7833 MB / 0.4989 GB, free: 4.664 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000164/0.3353, allocations: 38.22 kB / 0.4989 GB, free: 4.629 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.3355, allocations: 106 kB / 0.499 GB, free: 4.527 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3355, allocations: 0 / 0.499 GB, free: 4.527 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1827/0.5183, allocations: 6.278 MB / 0.5051 GB, free: 95.88 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001443/0.5184, allocations: 195.9 kB / 0.5053 GB, free: 95.63 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.803/2.321, allocations: 3.781 kB / 0.5053 GB, free: 95.63 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat does not exist to compare? outputFormat=mat