Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001547/0.001547, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 82.77 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.132e-05/3.144e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1017, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4624/0.5642, allocations: 81.22 MB / 450.4 MB, free: 12.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.5645, allocations: 69.66 kB / 450.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08694/0.6514, allocations: 15.98 MB / 466.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.6515, allocations: 0 / 466.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001392/0.6517, allocations: 28 kB / 466.5 MB, free: 13.56 MB / 346.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.0038/0.6555, allocations: 1.039 MB / 467.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.696e-05/0.6556, allocations: 12.03 kB / 467.5 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004395/0.6561, allocations: 156.4 kB / 467.7 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004025/0.6565, allocations: 126.4 kB / 467.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002021/0.6585, allocations: 0.5508 MB / 468.4 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.6587, allocations: 74 kB / 468.4 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002828/0.659, allocations: 103.9 kB / 468.5 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003565/0.6626, allocations: 0.9878 MB / 469.5 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.128e-05/0.6627, allocations: 4 kB / 469.5 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001698/0.6629, allocations: 51.94 kB / 469.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.137e-05/0.663, allocations: 28 kB / 469.6 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002609/0.6656, allocations: 0.5073 MB / 470.1 MB, free: 9.711 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0115/0.6771, allocations: 5.54 MB / 475.6 MB, free: 3.883 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.6783, allocations: 217 kB / 475.9 MB, free: 3.652 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004604/0.6788, allocations: 149.7 kB / 476 MB, free: 3.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001955/0.679, allocations: 89.08 kB / 476.1 MB, free: 3.395 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.6791, allocations: 38.56 kB / 476.1 MB, free: 3.348 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 3.416e-06/0.6791, allocations: 0 / 476.1 MB, free: 3.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.00527/0.6844, allocations: 1.523 MB / 477.6 MB, free: 1.723 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.643e-05/0.6845, allocations: 85.05 kB / 477.7 MB, free: 1.621 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.6857, allocations: 0.5389 MB / 478.3 MB, free: 1.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.026e-05/0.6858, allocations: 33.7 kB / 478.3 MB, free: 1.031 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000611/0.6865, allocations: 0.6167 MB / 478.9 MB, free: 416 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.6867, allocations: 150 kB / 479.1 MB, free: 264 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.623e-05/0.6868, allocations: 20 kB / 479.1 MB, free: 244 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002159/0.687, allocations: 338.8 kB / 479.4 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/0.6874, allocations: 129.5 kB / 479.5 MB, free: 15.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007566/0.6882, allocations: 467 kB / 480 MB, free: 15.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000606/0.6888, allocations: 224.1 kB / 480.2 MB, free: 14.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.6889, allocations: 0 / 480.2 MB, free: 14.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00168/0.6906, allocations: 0.6183 MB / 480.8 MB, free: 14.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.24e-05/0.6906, allocations: 8 kB / 480.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.343e-05/0.6907, allocations: 12 kB / 480.9 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.033e-05/0.6907, allocations: 24.73 kB / 480.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001344/0.6921, allocations: 199.7 kB / 481.1 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.949e-05/0.6922, allocations: 23.92 kB / 481.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007408/0.6929, allocations: 39.98 kB / 481.1 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.609e-05/0.6931, allocations: 40 kB / 481.2 MB, free: 13.97 MB / 362.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.0002278/0.6933, allocations: 156.6 kB / 481.3 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002114/0.6935, allocations: 75.06 kB / 481.4 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002576/0.6938, allocations: 78.31 kB / 481.5 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.6938, allocations: 4 kB / 481.5 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/0.6938, allocations: 7.953 kB / 481.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.6939, allocations: 3.984 kB / 481.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003413/0.6973, allocations: 1.288 MB / 482.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.241e-05/0.6974, allocations: 4 kB / 482.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.6984, allocations: 115.8 kB / 482.9 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-05/0.6984, allocations: 8.156 kB / 482.9 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.476e-05/0.6985, allocations: 15.98 kB / 482.9 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.609e-06/0.6985, allocations: 4 kB / 482.9 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.6985, allocations: 0 / 482.9 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001514/0.7001, allocations: 0.7176 MB / 483.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002765/0.7004, allocations: 136.2 kB / 483.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.7005, allocations: 20.03 kB / 483.8 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005437/0.7011, allocations: 23.98 kB / 483.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.7012, allocations: 27.92 kB / 483.8 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.224e-05/0.7013, allocations: 15.98 kB / 483.9 MB, free: 11.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008892/0.7022, allocations: 407.2 kB / 484.3 MB, free: 10.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.7022, allocations: 4 kB / 484.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001103/0.7033, allocations: 144 kB / 484.4 MB, free: 10.57 MB / 362.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.002085/0.7054, allocations: 1.669 MB / 486.1 MB, free: 8.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.7067, allocations: 390.4 kB / 486.5 MB, free: 8.461 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/0.7067, allocations: 8.062 kB / 486.5 MB, free: 8.453 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003686/0.7071, allocations: 131.9 kB / 486.6 MB, free: 8.324 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006615/0.7078, allocations: 71.23 kB / 486.7 MB, free: 8.254 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004609/0.7124, allocations: 1.398 MB / 488.1 MB, free: 6.793 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008631/0.7133, allocations: 1.031 MB / 489.1 MB, free: 5.734 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008287/0.7142, allocations: 399.3 kB / 489.5 MB, free: 5.344 MB / 362.7 MB Notification: Performance of SimCode: time 1.242e-06/0.7142, allocations: 0 / 489.5 MB, free: 5.344 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.63/3.344, allocations: 12.86 MB / 0.4906 GB, free: 8.465 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat