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/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.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/ModelicaServices trunk/package.mo): time 0.0008447/0.0008447, allocations: 98.98 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002578/0.000258, allocations: 8 kB / 306.8 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.113, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003489/0.1166, allocations: 2.531 MB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.1178, allocations: 0.717 MB / 361.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001792/0.118, allocations: 15.94 kB / 361.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001654/0.1181, allocations: 39.69 kB / 361.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002051/0.1184, allocations: 87.3 kB / 361.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002674/0.1186, allocations: 79.84 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003641/0.119, allocations: 378.4 kB / 362.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002662/0.1193, allocations: 145.1 kB / 362.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.1194, allocations: 127.5 kB / 362.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.1196, allocations: 147.2 kB / 362.6 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.716e-05/0.1197, allocations: 20 kB / 362.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.536e-05/0.1198, allocations: 24 kB / 362.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.1199, allocations: 79.72 kB / 362.7 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.087e-05/0.12, allocations: 97.52 kB / 362.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003474/0.1203, allocations: 379.2 kB / 363.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1204, allocations: 3.984 kB / 363.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1204, allocations: 0 / 363.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.1204, allocations: 0 / 363.1 MB, free: 8.879 MB / 302.1 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.001358/0.1217, allocations: 0.7756 MB / 363.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.1218, allocations: 12.03 kB / 363.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.289e-05/0.1219, allocations: 66.53 kB / 364 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.989e-05/0.1219, allocations: 39.53 kB / 364 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.1224, allocations: 341.3 kB / 364.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.1224, allocations: 28.66 kB / 364.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.956e-05/0.1224, allocations: 35.91 kB / 364.4 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005457/0.123, allocations: 341.9 kB / 364.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.123, allocations: 0 / 364.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.123, allocations: 12 kB / 364.8 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1231, allocations: 8 kB / 364.8 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.1235, allocations: 238.4 kB / 365 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.1251, allocations: 1.311 MB / 366.3 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003434/0.1255, allocations: 180.8 kB / 366.5 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.1257, allocations: 124.8 kB / 366.6 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.977e-05/0.1258, allocations: 15.97 kB / 366.6 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.1258, allocations: 38.5 kB / 366.7 MB, free: 5.129 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.605e-06/0.1258, allocations: 3.984 kB / 366.7 MB, free: 5.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004282/0.1262, allocations: 221.6 kB / 366.9 MB, free: 4.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.063e-05/0.1263, allocations: 55.41 kB / 367 MB, free: 4.836 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003259/0.1266, allocations: 318.9 kB / 367.3 MB, free: 4.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.1266, allocations: 25.7 kB / 367.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.1268, allocations: 220 kB / 367.5 MB, free: 4.266 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.359e-05/0.1268, allocations: 51.3 kB / 367.6 MB, free: 4.215 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.2e-05/0.1268, allocations: 0 / 367.6 MB, free: 4.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.1269, allocations: 334.8 kB / 367.9 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1271, allocations: 79.84 kB / 368 MB, free: 3.801 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.1272, allocations: 136.7 kB / 368.1 MB, free: 3.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.1273, allocations: 60 kB / 368.1 MB, free: 3.582 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1274, allocations: 0 / 368.1 MB, free: 3.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003608/0.1277, allocations: 243.5 kB / 368.4 MB, free: 3.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.1277, allocations: 8 kB / 368.4 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.1278, allocations: 3.984 kB / 368.4 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.1278, allocations: 4 kB / 368.4 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.128, allocations: 43.92 kB / 368.4 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.128, allocations: 7.938 kB / 368.5 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003641/0.1284, allocations: 88.02 kB / 368.5 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.245e-05/0.1284, allocations: 12 kB / 368.6 MB, free: 3.176 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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.000149/0.1285, allocations: 154.4 kB / 368.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.404e-05/0.1286, allocations: 27.67 kB / 368.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003862/0.129, allocations: 202.1 kB / 368.9 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.129, allocations: 0 / 368.9 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.129, allocations: 3.984 kB / 368.9 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.129, allocations: 0 / 368.9 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007676/0.1298, allocations: 0.6355 MB / 369.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1298, allocations: 4.031 kB / 369.6 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001509/0.13, allocations: 31.98 kB / 369.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.13, allocations: 0 / 369.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.13, allocations: 0 / 369.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.13, allocations: 11.92 kB / 369.6 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.13, allocations: 0 / 369.6 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004707/0.1305, allocations: 379.9 kB / 370 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.713e-05/0.1306, allocations: 104.9 kB / 370.1 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.345e-05/0.1306, allocations: 8 kB / 370.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003741/0.131, allocations: 75.92 kB / 370.2 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.1312, allocations: 75.86 kB / 370.2 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.1312, allocations: 4 kB / 370.2 MB, free: 1.367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002352/0.1315, allocations: 233.9 kB / 370.5 MB, free: 1.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1315, allocations: 0 / 370.5 MB, free: 1.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003581/0.1318, allocations: 91.67 kB / 370.6 MB, free: 1.051 MB / 302.1 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.0007336/0.1326, allocations: 0.9224 MB / 371.5 MB, free: 104 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1756/0.3082, allocations: 170 kB / 371.7 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/0.3082, allocations: 3.656 kB / 371.7 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002564/0.3085, allocations: 106.1 kB / 371.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006445/0.3091, allocations: 51.83 kB / 371.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003226/0.3124, allocations: 1.989 MB / 373.8 MB, free: 18.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.3126, allocations: 0.7738 MB / 374.6 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001921/0.3129, allocations: 37.92 kB / 374.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000169/0.313, allocations: 105.7 kB / 374.7 MB, free: 18.08 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.313, allocations: 0.6875 kB / 374.7 MB, free: 18.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01876/0.3318, allocations: 6.296 MB / 381 MB, free: 17.4 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/0.332, allocations: 202.5 kB / 381.2 MB, free: 17.15 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.969/2.301, allocations: 0 / 381.2 MB, free: 17.15 MB / 302.1 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