Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 180.4 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008908/0.0008905, allocations: 98.5 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002814, allocations: 8 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2904, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1212/0.4117, allocations: 82.97 MB / 484.6 MB, free: 13.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003158/0.4121, allocations: 79.95 kB / 484.6 MB, free: 13.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04062/0.4527, allocations: 16.29 MB / 0.4892 GB, free: 12.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.4527, allocations: 0 / 0.4892 GB, free: 12.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.101e-05/0.4528, allocations: 32 kB / 0.4892 GB, free: 12.77 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001958/0.4548, allocations: 1.133 MB / 0.4903 GB, free: 11.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/0.4549, allocations: 12.03 kB / 0.4903 GB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001809/0.455, allocations: 148.2 kB / 0.4905 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.4552, allocations: 126.4 kB / 0.4906 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.4563, allocations: 0.5511 MB / 0.4911 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.033e-05/0.4564, allocations: 74 kB / 0.4912 GB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.4565, allocations: 99.95 kB / 0.4913 GB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001853/0.4584, allocations: 1.011 MB / 0.4923 GB, free: 9.406 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.407e-05/0.4585, allocations: 11.84 kB / 0.4923 GB, free: 9.395 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.841e-05/0.4585, allocations: 48 kB / 0.4923 GB, free: 9.348 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.101e-05/0.4586, allocations: 28 kB / 0.4924 GB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.4598, allocations: 0.5578 MB / 0.4929 GB, free: 8.762 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006041/0.4658, allocations: 5.532 MB / 0.4983 GB, free: 2.945 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006231/0.4665, allocations: 236.7 kB / 0.4985 GB, free: 2.699 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002399/0.4667, allocations: 93.08 kB / 0.4986 GB, free: 2.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.4668, allocations: 38.5 kB / 0.4987 GB, free: 2.543 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 5.39e-06/0.4668, allocations: 0 / 0.4987 GB, free: 2.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=38): time 0.003894/0.4707, allocations: 1.717 MB / 0.5003 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.969e-05/0.4708, allocations: 81.3 kB / 0.5004 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006908/0.4715, allocations: 0.5466 MB / 0.501 GB, free: 72 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/0.4715, allocations: 29.7 kB / 0.501 GB, free: 36 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2911/0.7626, allocations: 0.5937 MB / 0.5016 GB, free: 94.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002331/0.7629, allocations: 140.3 kB / 0.5017 GB, free: 94.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.774e-05/0.763, allocations: 15.47 kB / 0.5017 GB, free: 94.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.7631, allocations: 391.4 kB / 0.5021 GB, free: 94.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000465/0.7636, allocations: 155.7 kB / 0.5022 GB, free: 94.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006092/0.7642, allocations: 0.494 MB / 0.5027 GB, free: 93.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004827/0.7647, allocations: 229.1 kB / 0.5029 GB, free: 93.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/0.7647, allocations: 7.438 kB / 0.5029 GB, free: 93.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001457/0.7662, allocations: 0.7191 MB / 0.5036 GB, free: 93.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.365e-05/0.7663, allocations: 9.625 kB / 0.5036 GB, free: 93.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.2e-05/0.7663, allocations: 11 kB / 0.5037 GB, free: 93.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.101e-05/0.7663, allocations: 20.14 kB / 0.5037 GB, free: 93.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007533/0.7671, allocations: 194.6 kB / 0.5039 GB, free: 93.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.395e-05/0.7671, allocations: 23.81 kB / 0.5039 GB, free: 93.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/0.7675, allocations: 35.78 kB / 0.5039 GB, free: 93.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.799e-05/0.7676, allocations: 40.16 kB / 0.504 GB, free: 93.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 94 * 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.0003812/0.768, allocations: 232.3 kB / 0.5042 GB, free: 93.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.7681, allocations: 75.38 kB / 0.5043 GB, free: 93.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001518/0.7683, allocations: 75.09 kB / 0.5043 GB, free: 93.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.7683, allocations: 3.812 kB / 0.5043 GB, free: 93.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.7683, allocations: 5.516 kB / 0.5043 GB, free: 93.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.7683, allocations: 3.641 kB / 0.5043 GB, free: 93.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002434/0.7708, allocations: 1.311 MB / 0.5056 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.7708, allocations: 0.6562 kB / 0.5056 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005662/0.7714, allocations: 111.5 kB / 0.5057 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.7714, allocations: 2.281 kB / 0.5057 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.854e-05/0.7714, allocations: 6.312 kB / 0.5057 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.7714, allocations: 2.281 kB / 0.5057 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.7714, allocations: 1.031 kB / 0.5057 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.7725, allocations: 0.7172 MB / 0.5064 GB, free: 92.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.7727, allocations: 142.4 kB / 0.5066 GB, free: 92.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.7727, allocations: 7 kB / 0.5066 GB, free: 92.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000282/0.773, allocations: 30.97 kB / 0.5066 GB, free: 92.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.078e-05/0.7731, allocations: 33.45 kB / 0.5066 GB, free: 92.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.7731, allocations: 9.719 kB / 0.5066 GB, free: 92.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004609/0.7736, allocations: 416.7 kB / 0.507 GB, free: 92.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7736, allocations: 6.438 kB / 0.5071 GB, free: 92.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007134/0.7743, allocations: 141.5 kB / 0.5072 GB, free: 92.51 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.001321/0.7756, allocations: 1.409 MB / 0.5086 GB, free: 91.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009035/0.7766, allocations: 440.5 kB / 0.509 GB, free: 91.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.7766, allocations: 7.375 kB / 0.509 GB, free: 91.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000262/0.7768, allocations: 153.2 kB / 0.5091 GB, free: 91.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.7773, allocations: 60.47 kB / 0.5092 GB, free: 91.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007898/0.7852, allocations: 12.45 MB / 0.5214 GB, free: 81.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.7856, allocations: 1.03 MB / 0.5224 GB, free: 80.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003095/0.786, allocations: 83.53 kB / 0.5224 GB, free: 80.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000388/0.7863, allocations: 388.8 kB / 0.5228 GB, free: 80.48 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.7864, allocations: 0 / 0.5228 GB, free: 80.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02625/0.8126, allocations: 11.39 MB / 0.5339 GB, free: 75.53 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/0.8128, allocations: 188.5 kB / 0.5341 GB, free: 75.29 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.345/3.158, allocations: 0 / 0.5341 GB, free: 75.29 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat