Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001053, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000935/0.0009349, allocations: 86.8 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.997e-05/3.023e-05, allocations: 4 kB / 350.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1103, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3316/0.4419, allocations: 83.73 MB / 485.8 MB, free: 5.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.4422, allocations: 71.89 kB / 485.9 MB, free: 5.691 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04121/0.4834, allocations: 16.34 MB / 0.4905 GB, free: 6.793 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4835, allocations: 4 kB / 0.4905 GB, free: 6.789 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.314e-05/0.4836, allocations: 28 kB / 0.4905 GB, free: 6.762 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002187/0.4858, allocations: 1.04 MB / 0.4915 GB, free: 5.684 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.4858, allocations: 8.031 kB / 0.4915 GB, free: 5.676 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002828/0.4861, allocations: 152.2 kB / 0.4917 GB, free: 5.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004913/0.4866, allocations: 155.3 kB / 0.4918 GB, free: 5.367 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.4877, allocations: 0.5468 MB / 0.4924 GB, free: 4.781 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.381e-05/0.4878, allocations: 74 kB / 0.4924 GB, free: 4.707 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.4879, allocations: 99.91 kB / 0.4925 GB, free: 4.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/0.4898, allocations: 0.9911 MB / 0.4935 GB, free: 3.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.51e-05/0.4898, allocations: 7.938 kB / 0.4935 GB, free: 3.492 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/0.49, allocations: 46.53 kB / 0.4936 GB, free: 3.449 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.706e-05/0.49, allocations: 24 kB / 0.4936 GB, free: 3.426 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.4912, allocations: 0.5151 MB / 0.4941 GB, free: 2.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006138/0.4973, allocations: 5.543 MB / 0.4995 GB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006102/0.498, allocations: 228 kB / 0.4997 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002845/0.4983, allocations: 143.7 kB / 0.4999 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000175/0.4985, allocations: 93.08 kB / 0.4999 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.4985, allocations: 42.5 kB / 0.5 GB, free: 12.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 2.595e-06/0.4985, allocations: 0 / 0.5 GB, free: 12.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.003751/0.5023, allocations: 1.513 MB / 0.5015 GB, free: 10.92 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.5024, allocations: 81.11 kB / 0.5015 GB, free: 10.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008903/0.5033, allocations: 0.5428 MB / 0.5021 GB, free: 10.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.074e-05/0.5033, allocations: 37.7 kB / 0.5021 GB, free: 10.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004558/0.5038, allocations: 0.5909 MB / 0.5027 GB, free: 9.625 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.504, allocations: 153.9 kB / 0.5028 GB, free: 9.473 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.869e-05/0.504, allocations: 18.25 kB / 0.5028 GB, free: 9.457 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.5042, allocations: 382.8 kB / 0.5032 GB, free: 9.074 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.5044, allocations: 125.6 kB / 0.5033 GB, free: 8.953 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004858/0.5049, allocations: 478.9 kB / 0.5038 GB, free: 8.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003726/0.5053, allocations: 198.4 kB / 0.504 GB, free: 8.129 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.5053, allocations: 8 kB / 0.504 GB, free: 8.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001243/0.5066, allocations: 0.6703 MB / 0.5046 GB, free: 7.445 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.5066, allocations: 8 kB / 0.5046 GB, free: 7.438 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.5067, allocations: 12 kB / 0.5047 GB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.214e-05/0.5067, allocations: 23.95 kB / 0.5047 GB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007268/0.5075, allocations: 203.6 kB / 0.5049 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.364e-05/0.5075, allocations: 27.86 kB / 0.5049 GB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004247/0.5079, allocations: 40.16 kB / 0.5049 GB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-05/0.508, allocations: 39.98 kB / 0.505 GB, free: 7.098 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0001488/0.5082, allocations: 148.7 kB / 0.5051 GB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.5083, allocations: 75.06 kB / 0.5052 GB, free: 6.871 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001631/0.5085, allocations: 78.31 kB / 0.5053 GB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.5085, allocations: 7.984 kB / 0.5053 GB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.5085, allocations: 7.953 kB / 0.5053 GB, free: 6.777 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.912e-06/0.5085, allocations: 7.938 kB / 0.5053 GB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002368/0.5109, allocations: 1.287 MB / 0.5065 GB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.5109, allocations: 0 / 0.5065 GB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005225/0.5115, allocations: 116 kB / 0.5067 GB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.5115, allocations: 4 kB / 0.5067 GB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.441e-05/0.5115, allocations: 13.22 kB / 0.5067 GB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.644e-06/0.5116, allocations: 4 kB / 0.5067 GB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.5116, allocations: 3.938 kB / 0.5067 GB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009592/0.5125, allocations: 0.7077 MB / 0.5074 GB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/0.5127, allocations: 140.2 kB / 0.5075 GB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.353e-05/0.5128, allocations: 8 kB / 0.5075 GB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003339/0.5131, allocations: 27.98 kB / 0.5075 GB, free: 4.301 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.5133, allocations: 39.84 kB / 0.5076 GB, free: 4.262 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.171e-05/0.5133, allocations: 12 kB / 0.5076 GB, free: 4.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000658/0.514, allocations: 411.2 kB / 0.508 GB, free: 3.855 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.514, allocations: 0 / 0.508 GB, free: 3.855 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007838/0.5148, allocations: 140 kB / 0.5081 GB, free: 3.719 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * 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.001417/0.5162, allocations: 1.685 MB / 0.5098 GB, free: 1.969 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006951/0.5169, allocations: 390.8 kB / 0.5101 GB, free: 1.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.5169, allocations: 1.812 kB / 0.5101 GB, free: 1.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002225/0.5171, allocations: 139.6 kB / 0.5103 GB, free: 1.457 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004024/0.5176, allocations: 73.27 kB / 0.5103 GB, free: 1.387 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003168/0.5207, allocations: 1.36 MB / 0.5117 GB, free: 15.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007069/0.5215, allocations: 1.024 MB / 0.5127 GB, free: 14.91 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003452/0.5218, allocations: 90.67 kB / 0.5127 GB, free: 14.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005216/0.5223, allocations: 395.3 kB / 0.5131 GB, free: 14.43 MB / 394.7 MB Notification: Performance of SimCode: time 5.61e-07/0.5224, allocations: 0 / 0.5131 GB, free: 14.43 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.5512, allocations: 11.38 MB / 0.5242 GB, free: 3.234 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002167/0.5515, allocations: 157.8 kB / 0.5244 GB, free: 3.016 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.17/2.721, allocations: 0 / 0.5244 GB, free: 3.016 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat