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.001092/0.001092, allocations: 98.7 kB / 16.99 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.001272/0.001272, allocations: 197.7 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002274/0.0002275, allocations: 7.984 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1083, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002895/0.1112, allocations: 2.406 MB / 360.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.1124, allocations: 0.7366 MB / 361.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.1126, allocations: 8 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.1127, allocations: 39.69 kB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000217/0.113, allocations: 107.7 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.1133, allocations: 71.86 kB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003503/0.1136, allocations: 271.4 kB / 361.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000277/0.1139, allocations: 145.1 kB / 362 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.114, allocations: 115.6 kB / 362.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000207/0.1142, allocations: 143.3 kB / 362.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.841e-05/0.1143, allocations: 16 kB / 362.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.1144, allocations: 31.92 kB / 362.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.1146, allocations: 75.72 kB / 362.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7e-05/0.1146, allocations: 97.52 kB / 362.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003125/0.1149, allocations: 375.2 kB / 362.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.115, allocations: 0 / 362.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.115, allocations: 4 kB / 362.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.115, allocations: 0 / 362.8 MB, free: 9.117 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.001434/0.1164, allocations: 0.764 MB / 363.6 MB, free: 8.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.1165, allocations: 8.031 kB / 363.6 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.584e-05/0.1165, allocations: 70.53 kB / 363.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.937e-05/0.1166, allocations: 39.53 kB / 363.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.117, allocations: 337.3 kB / 364 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.1171, allocations: 24.66 kB / 364.1 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.3e-05/0.1171, allocations: 35.91 kB / 364.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005448/0.1177, allocations: 341.8 kB / 364.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1177, allocations: 0 / 364.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.254e-05/0.1178, allocations: 8 kB / 364.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1178, allocations: 8 kB / 364.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004082/0.1182, allocations: 242.4 kB / 364.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.1199, allocations: 1.319 MB / 366 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/0.1203, allocations: 182.5 kB / 366.2 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.1203, allocations: 7.938 kB / 366.2 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.198e-05/0.1203, allocations: 30.56 kB / 366.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/0.1203, allocations: 4 kB / 366.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004545/0.1208, allocations: 241.5 kB / 366.4 MB, free: 5.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.1209, allocations: 51.41 kB / 366.5 MB, free: 5.207 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003602/0.1212, allocations: 318.9 kB / 366.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.1213, allocations: 25.7 kB / 366.8 MB, free: 4.855 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.1214, allocations: 216 kB / 367 MB, free: 4.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.01e-05/0.1215, allocations: 55.28 kB / 367.1 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.176e-05/0.1215, allocations: 0 / 367.1 MB, free: 4.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1216, allocations: 342.8 kB / 367.4 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1217, allocations: 75.95 kB / 367.5 MB, free: 4.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.1219, allocations: 123.9 kB / 367.6 MB, free: 4.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.122, allocations: 75.88 kB / 367.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.122, allocations: 0 / 367.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003787/0.1224, allocations: 241 kB / 367.9 MB, free: 3.707 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.1224, allocations: 4 kB / 367.9 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1225, allocations: 4 kB / 367.9 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.1225, allocations: 224 / 367.9 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.1227, allocations: 55.97 kB / 368 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1227, allocations: 7.938 kB / 368 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.1231, allocations: 87.77 kB / 368.1 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.683e-05/0.1231, allocations: 8 kB / 368.1 MB, free: 3.543 MB / 302.1 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.0001466/0.1233, allocations: 157.7 kB / 368.3 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.921e-05/0.1233, allocations: 27.67 kB / 368.3 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003847/0.1237, allocations: 206.1 kB / 368.5 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.1238, allocations: 4 kB / 368.5 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1238, allocations: 4 kB / 368.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.1238, allocations: 3.984 kB / 368.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003726/0.1242, allocations: 365.3 kB / 368.9 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1242, allocations: 0 / 368.9 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.1243, allocations: 35.91 kB / 368.9 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.1243, allocations: 4 kB / 368.9 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.1244, allocations: 7.953 kB / 368.9 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1244, allocations: 0 / 368.9 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1244, allocations: 0 / 368.9 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004672/0.1249, allocations: 387 kB / 369.3 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.088e-05/0.1249, allocations: 104.8 kB / 369.4 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.242e-05/0.125, allocations: 4 kB / 369.4 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004165/0.1254, allocations: 87.88 kB / 369.5 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/0.1256, allocations: 71.88 kB / 369.5 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.1256, allocations: 7.984 kB / 369.5 MB, free: 1.996 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002284/0.1259, allocations: 226 kB / 369.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1259, allocations: 0 / 369.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003629/0.1262, allocations: 91.69 kB / 369.9 MB, free: 1.688 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0007714/0.127, allocations: 0.9204 MB / 370.8 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003249/0.1274, allocations: 180.2 kB / 371 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1274, allocations: 4.125 kB / 371 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.1275, allocations: 99.89 kB / 371.1 MB, free: 480 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.1279, allocations: 47.39 kB / 371.1 MB, free: 436 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1688/0.2967, allocations: 3.031 MB / 374.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.297, allocations: 0.7838 MB / 374.9 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001745/0.2972, allocations: 38.75 kB / 375 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.2973, allocations: 104.5 kB / 375.1 MB, free: 17.2 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.2973, allocations: 0 / 375.1 MB, free: 17.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.3162, allocations: 6.281 MB / 381.3 MB, free: 16.62 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001253/0.3163, allocations: 198.4 kB / 381.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.964/2.28, allocations: 0 / 381.5 MB, free: 16.38 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