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.001319/0.001319, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008146/0.0008146, allocations: 102 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002019/0.0002019, allocations: 4 kB / 358 MB, free: 9.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1806, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08952/0.2702, allocations: 83.79 MB / 493.3 MB, free: 6.801 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.2704, allocations: 79.95 kB / 493.4 MB, free: 6.723 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0376/0.308, allocations: 16.36 MB / 0.4978 GB, free: 6.055 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.308, allocations: 0 / 0.4978 GB, free: 6.055 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.827e-05/0.3081, allocations: 31.98 kB / 0.4978 GB, free: 6.023 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.001775/0.3099, allocations: 1.13 MB / 0.4989 GB, free: 4.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.3099, allocations: 8.031 kB / 0.4989 GB, free: 4.832 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001764/0.3101, allocations: 152.2 kB / 0.4991 GB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003397/0.3105, allocations: 150.4 kB / 0.4992 GB, free: 4.527 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008251/0.3113, allocations: 0.5549 MB / 0.4997 GB, free: 3.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.438e-05/0.3114, allocations: 77.94 kB / 0.4998 GB, free: 3.852 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.3115, allocations: 96 kB / 0.4999 GB, free: 3.758 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.313, allocations: 1.011 MB / 0.5009 GB, free: 2.625 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.45e-05/0.313, allocations: 15.84 kB / 0.5009 GB, free: 2.609 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.887e-05/0.3131, allocations: 40 kB / 0.501 GB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.3131, allocations: 28 kB / 0.501 GB, free: 2.543 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.3142, allocations: 0.5578 MB / 0.5015 GB, free: 1.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1636/0.4778, allocations: 5.541 MB / 0.5069 GB, free: 85.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005543/0.4784, allocations: 236.8 kB / 0.5072 GB, free: 85.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001278/0.4785, allocations: 86.58 kB / 0.5072 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.4786, allocations: 42.05 kB / 0.5073 GB, free: 84.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 2.174e-06/0.4786, allocations: 0 / 0.5073 GB, free: 84.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=38): time 0.003494/0.4821, allocations: 1.71 MB / 0.509 GB, free: 84.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.4821, allocations: 81.78 kB / 0.509 GB, free: 84.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005584/0.4827, allocations: 0.5469 MB / 0.5096 GB, free: 84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.4827, allocations: 34.64 kB / 0.5096 GB, free: 83.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002565/0.483, allocations: 0.5945 MB / 0.5102 GB, free: 83.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.254e-05/0.4831, allocations: 145.9 kB / 0.5103 GB, free: 83.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.977e-05/0.4831, allocations: 14 kB / 0.5103 GB, free: 83.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.104e-05/0.4832, allocations: 383.6 kB / 0.5107 GB, free: 83.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002805/0.4835, allocations: 160.5 kB / 0.5109 GB, free: 83.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003889/0.4839, allocations: 0.491 MB / 0.5113 GB, free: 82.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003528/0.4842, allocations: 228.5 kB / 0.5116 GB, free: 82.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.4842, allocations: 4.875 kB / 0.5116 GB, free: 82.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00107/0.4853, allocations: 0.7186 MB / 0.5123 GB, free: 82.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.4854, allocations: 10.69 kB / 0.5123 GB, free: 82.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/0.4854, allocations: 13.88 kB / 0.5123 GB, free: 82.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.278e-05/0.4854, allocations: 21.64 kB / 0.5123 GB, free: 82.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000722/0.4862, allocations: 196.9 kB / 0.5125 GB, free: 82.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.441e-05/0.4862, allocations: 23.05 kB / 0.5125 GB, free: 82.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.4866, allocations: 37.34 kB / 0.5125 GB, free: 82.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.431e-05/0.4866, allocations: 39.38 kB / 0.5126 GB, free: 82.79 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.0002758/0.4869, allocations: 232 kB / 0.5128 GB, free: 82.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.784e-05/0.487, allocations: 75.23 kB / 0.5129 GB, free: 82.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.4871, allocations: 76.72 kB / 0.513 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.4872, allocations: 4.156 kB / 0.513 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.4872, allocations: 3.953 kB / 0.513 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.4872, allocations: 3.453 kB / 0.513 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.4889, allocations: 1.304 MB / 0.5142 GB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/0.4889, allocations: 3.812 kB / 0.5142 GB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004456/0.4894, allocations: 107.6 kB / 0.5143 GB, free: 82.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.4894, allocations: 7.625 kB / 0.5143 GB, free: 82.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.4894, allocations: 7.438 kB / 0.5144 GB, free: 82.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.4894, allocations: 1.594 kB / 0.5144 GB, free: 82.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4894, allocations: 1.25 kB / 0.5144 GB, free: 82.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007824/0.4902, allocations: 0.7164 MB / 0.5151 GB, free: 81.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.242e-05/0.4903, allocations: 138.2 kB / 0.5152 GB, free: 81.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.345e-05/0.4904, allocations: 13.41 kB / 0.5152 GB, free: 81.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/0.4907, allocations: 26.19 kB / 0.5152 GB, free: 81.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.785e-05/0.4907, allocations: 26.95 kB / 0.5153 GB, free: 81.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.4907, allocations: 16.75 kB / 0.5153 GB, free: 81.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003385/0.4911, allocations: 413.7 kB / 0.5157 GB, free: 81.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4911, allocations: 0 / 0.5157 GB, free: 81.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005984/0.4917, allocations: 143.3 kB / 0.5158 GB, free: 81.64 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.0009459/0.4927, allocations: 1.412 MB / 0.5172 GB, free: 80.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006207/0.4933, allocations: 454.4 kB / 0.5176 GB, free: 80.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4933, allocations: 0 / 0.5176 GB, free: 80.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002216/0.4935, allocations: 158.2 kB / 0.5178 GB, free: 80.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003165/0.4938, allocations: 73.06 kB / 0.5178 GB, free: 80.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005788/0.4996, allocations: 12.45 MB / 0.53 GB, free: 70.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003636/0.5, allocations: 1.024 MB / 0.531 GB, free: 69.53 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002882/0.5003, allocations: 88.41 kB / 0.5311 GB, free: 69.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003401/0.5007, allocations: 391.4 kB / 0.5315 GB, free: 69.21 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5007, allocations: 2.812 kB / 0.5315 GB, free: 69.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0211/0.5218, allocations: 11.38 MB / 0.5426 GB, free: 63.84 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001327/0.522, allocations: 184.2 kB / 0.5427 GB, free: 63.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.026/2.548, allocations: 0 / 0.5427 GB, free: 63.6 MB / 378.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