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.001186/0.001186, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.296/1.296, allocations: 221.3 MB / 235.5 MB, free: 2.926 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008113/0.0008113, allocations: 90.23 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.302e-05/2.315e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09224/0.09227, allocations: 50.42 MB / 394.3 MB, free: 1.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.311/0.4033, allocations: 82.91 MB / 477.3 MB, free: 4.551 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001909/0.4035, allocations: 67.95 kB / 477.3 MB, free: 4.484 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03817/0.4417, allocations: 16.27 MB / 493.6 MB, free: 3.902 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4417, allocations: 0 / 493.6 MB, free: 3.902 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.628e-05/0.4418, allocations: 28 kB / 493.6 MB, free: 3.875 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.001445/0.4433, allocations: 1.029 MB / 494.6 MB, free: 2.797 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.4433, allocations: 8.031 kB / 494.7 MB, free: 2.789 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001491/0.4435, allocations: 152.2 kB / 494.8 MB, free: 2.633 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.4436, allocations: 130.6 kB / 494.9 MB, free: 2.504 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008126/0.4444, allocations: 0.5586 MB / 495.5 MB, free: 1.906 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.638e-05/0.4445, allocations: 74 kB / 495.6 MB, free: 1.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.4446, allocations: 103.9 kB / 495.7 MB, free: 1.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.4462, allocations: 0.9881 MB / 496.7 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/0.4462, allocations: 7.938 kB / 496.7 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.788e-05/0.4463, allocations: 44 kB / 496.7 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.162e-05/0.4463, allocations: 27.94 kB / 496.7 MB, free: 0.543 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009705/0.4473, allocations: 0.515 MB / 497.2 MB, free: 32 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004641/0.452, allocations: 5.54 MB / 0.491 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004827/0.4525, allocations: 221 kB / 0.4912 GB, free: 9.965 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002576/0.4527, allocations: 145.7 kB / 0.4914 GB, free: 9.816 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001529/0.4529, allocations: 89.09 kB / 0.4914 GB, free: 9.711 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.4529, allocations: 38.52 kB / 0.4915 GB, free: 9.664 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 2.535e-06/0.4529, allocations: 0 / 0.4915 GB, free: 9.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.002925/0.4559, allocations: 1.534 MB / 0.493 GB, free: 8.039 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/0.4559, allocations: 81.11 kB / 0.493 GB, free: 7.941 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005788/0.4565, allocations: 0.539 MB / 0.4936 GB, free: 7.391 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.4566, allocations: 37.64 kB / 0.4936 GB, free: 7.348 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003399/0.4569, allocations: 0.6064 MB / 0.4942 GB, free: 6.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.772e-05/0.457, allocations: 142 kB / 0.4943 GB, free: 6.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.595e-05/0.457, allocations: 16 kB / 0.4944 GB, free: 6.574 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.4572, allocations: 390.7 kB / 0.4947 GB, free: 6.184 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.4574, allocations: 125.6 kB / 0.4948 GB, free: 6.062 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/0.4578, allocations: 478.9 kB / 0.4953 GB, free: 5.426 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.4581, allocations: 205.3 kB / 0.4955 GB, free: 5.227 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.4581, allocations: 4 kB / 0.4955 GB, free: 5.223 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009261/0.4591, allocations: 0.661 MB / 0.4961 GB, free: 4.555 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.4591, allocations: 9.094 kB / 0.4962 GB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.4591, allocations: 16.12 kB / 0.4962 GB, free: 4.531 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/0.4592, allocations: 20 kB / 0.4962 GB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006303/0.4598, allocations: 195.7 kB / 0.4964 GB, free: 4.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.583e-05/0.4598, allocations: 23.92 kB / 0.4964 GB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.4602, allocations: 39.98 kB / 0.4964 GB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.405e-05/0.4602, allocations: 47.94 kB / 0.4965 GB, free: 4.211 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.0001102/0.4603, allocations: 156.6 kB / 0.4966 GB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.4604, allocations: 75.06 kB / 0.4967 GB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.4606, allocations: 74.31 kB / 0.4968 GB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.4606, allocations: 4 kB / 0.4968 GB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.4606, allocations: 4 kB / 0.4968 GB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.4606, allocations: 3.984 kB / 0.4968 GB, free: 3.891 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.4624, allocations: 1.292 MB / 0.498 GB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4624, allocations: 0 / 0.498 GB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004753/0.4629, allocations: 120 kB / 0.4982 GB, free: 2.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.4629, allocations: 4 kB / 0.4982 GB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/0.4629, allocations: 11.98 kB / 0.4982 GB, free: 2.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.261e-06/0.4629, allocations: 8 kB / 0.4982 GB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.4629, allocations: 0 / 0.4982 GB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007192/0.4637, allocations: 0.711 MB / 0.4989 GB, free: 1.605 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.4638, allocations: 136.3 kB / 0.499 GB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.681e-05/0.4639, allocations: 16.03 kB / 0.499 GB, free: 1.438 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002835/0.4641, allocations: 31.91 kB / 0.4991 GB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.525e-05/0.4642, allocations: 23.97 kB / 0.4991 GB, free: 1.383 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.297e-05/0.4643, allocations: 23.98 kB / 0.4991 GB, free: 1.359 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004184/0.4647, allocations: 403.2 kB / 0.4995 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4647, allocations: 0 / 0.4995 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005519/0.4652, allocations: 143.9 kB / 0.4996 GB, free: 0.832 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.001163/0.4664, allocations: 1.684 MB / 0.5013 GB, free: 15.08 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005789/0.467, allocations: 386.1 kB / 0.5016 GB, free: 14.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.467, allocations: 0 / 0.5016 GB, free: 14.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.4672, allocations: 138.3 kB / 0.5018 GB, free: 14.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003326/0.4675, allocations: 67.3 kB / 0.5018 GB, free: 14.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.4699, allocations: 1.361 MB / 0.5032 GB, free: 13.08 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005008/0.4704, allocations: 1.028 MB / 0.5042 GB, free: 12.03 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000298/0.4707, allocations: 90 kB / 0.5043 GB, free: 11.94 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004184/0.4711, allocations: 391.2 kB / 0.5046 GB, free: 11.55 MB / 394.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4711, allocations: 4 kB / 0.5046 GB, free: 11.55 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02493/0.4961, allocations: 11.38 MB / 0.5157 GB, free: 300 kB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001773/0.4963, allocations: 156.2 kB / 0.5159 GB, free: 72 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.111/2.607, allocations: 7.938 kB / 0.5159 GB, free: 64 kB / 394.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