Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.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.OpAmps.LCOscillator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator",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.002451/0.002451, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.01/2.01, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 90.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.728e-05/3.74e-05, allocations: 7.938 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4022, allocations: 47.56 MB / 362.4 MB, free: 45.89 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.128/0.5303, allocations: 77.11 MB / 439.6 MB, free: 9.191 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003149/0.5307, allocations: 72.52 kB / 439.6 MB, free: 9.121 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02082/0.5515, allocations: 4.365 MB / 444 MB, free: 4.777 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.5516, allocations: 0 / 444 MB, free: 4.777 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.845e-05/0.5516, allocations: 8 kB / 444 MB, free: 4.77 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001119/0.5528, allocations: 0.5133 MB / 444.5 MB, free: 4.215 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.5528, allocations: 12.03 kB / 444.5 MB, free: 4.203 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.5529, allocations: 27.72 kB / 444.5 MB, free: 4.176 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005125/0.5535, allocations: 263.4 kB / 444.8 MB, free: 3.879 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.5535, allocations: 8 kB / 444.8 MB, free: 3.871 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.212e-05/0.5536, allocations: 16 kB / 444.8 MB, free: 3.855 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005288/0.5541, allocations: 166.9 kB / 445 MB, free: 3.695 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005167/0.5547, allocations: 180.8 kB / 445.2 MB, free: 3.512 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.5547, allocations: 0 / 445.2 MB, free: 3.512 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/0.5548, allocations: 4 kB / 445.2 MB, free: 3.508 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.5548, allocations: 4 kB / 445.2 MB, free: 3.504 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002587/0.5574, allocations: 0.9011 MB / 446.1 MB, free: 2.539 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006439/0.5581, allocations: 158.5 kB / 446.2 MB, free: 2.375 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004957/0.5586, allocations: 140.4 kB / 446.4 MB, free: 2.238 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.5587, allocations: 11.98 kB / 446.4 MB, free: 2.227 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.5587, allocations: 34.56 kB / 446.4 MB, free: 2.184 MB / 331.1 MB Notification: Performance of pre-optimization done (n=18): time 3.206e-06/0.5587, allocations: 0 / 446.4 MB, free: 2.184 MB / 331.1 MB Notification: Performance of matching and sorting (n=18): time 0.000882/0.5596, allocations: 222.4 kB / 446.6 MB, free: 1.961 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.5597, allocations: 51.41 kB / 446.7 MB, free: 1.898 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000302/0.56, allocations: 181.9 kB / 446.9 MB, free: 1.715 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 4.217e-05/0.5601, allocations: 25.7 kB / 446.9 MB, free: 1.684 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.5602, allocations: 234.4 kB / 447.1 MB, free: 1.453 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.549e-05/0.5603, allocations: 70.94 kB / 447.2 MB, free: 1.383 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.364e-05/0.5604, allocations: 0 / 447.2 MB, free: 1.383 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.5605, allocations: 326.8 kB / 447.5 MB, free: 1.055 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.5607, allocations: 47.98 kB / 447.6 MB, free: 1.008 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.5609, allocations: 90.8 kB / 447.6 MB, free: 0.8984 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000198/0.5611, allocations: 66.41 kB / 447.7 MB, free: 0.8359 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.5611, allocations: 0 / 447.7 MB, free: 0.8359 MB / 331.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009581/0.5621, allocations: 267.8 kB / 448 MB, free: 0.5664 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003537/0.5625, allocations: 0.6084 MB / 448.6 MB, free: 15.91 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.5625, allocations: 0 / 448.6 MB, free: 15.91 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003739/0.5629, allocations: 60.83 kB / 448.6 MB, free: 15.85 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003455/0.5633, allocations: 46.16 kB / 448.7 MB, free: 15.8 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007137/0.564, allocations: 0.597 MB / 449.3 MB, free: 15.18 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.5644, allocations: 31.83 kB / 449.3 MB, free: 15.15 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/0.5644, allocations: 12 kB / 449.3 MB, free: 15.14 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.5644, allocations: 0 / 449.3 MB, free: 15.14 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005515/0.565, allocations: 177.5 kB / 449.5 MB, free: 14.96 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.565, allocations: 0 / 449.5 MB, free: 14.96 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002077/0.5652, allocations: 52.97 kB / 449.5 MB, free: 14.91 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003433/0.5656, allocations: 43.97 kB / 449.6 MB, free: 14.87 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/0.5676, allocations: 1.529 MB / 451.1 MB, free: 13.23 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.5678, allocations: 11.84 kB / 451.1 MB, free: 13.21 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.5679, allocations: 17.39 kB / 451.1 MB, free: 13.2 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.simplifiedExpr:VARIABLE(unit = "V" protected = true ) "Simplified expression for homotopy-based initialization" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002185/0.5681, allocations: 113.3 kB / 451.3 MB, free: 13.08 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007297/0.5689, allocations: 214.2 kB / 451.5 MB, free: 12.86 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.3e-05/0.5689, allocations: 19.72 kB / 451.5 MB, free: 12.84 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.545e-05/0.569, allocations: 25.95 kB / 451.5 MB, free: 12.82 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.569, allocations: 8 kB / 451.5 MB, free: 12.81 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.5691, allocations: 0 / 451.5 MB, free: 12.81 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.5691, allocations: 0 / 451.5 MB, free: 12.81 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001312/0.5704, allocations: 0.5558 MB / 452.1 MB, free: 12.21 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.5704, allocations: 4 kB / 452.1 MB, free: 12.21 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.5707, allocations: 24.55 kB / 452.1 MB, free: 12.18 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002683/0.571, allocations: 56.81 kB / 452.2 MB, free: 12.12 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.571, allocations: 0 / 452.2 MB, free: 12.12 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002408/0.5735, allocations: 1.622 MB / 453.8 MB, free: 10.39 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.5735, allocations: 0.9062 kB / 453.8 MB, free: 10.39 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009947/0.5745, allocations: 383.3 kB / 454.2 MB, free: 10 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.5747, allocations: 101 kB / 454.3 MB, free: 9.887 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.5747, allocations: 4 kB / 454.3 MB, free: 9.883 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/0.575, allocations: 15.98 kB / 454.3 MB, free: 9.867 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.149e-05/0.5751, allocations: 7.984 kB / 454.3 MB, free: 9.859 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.5751, allocations: 8 kB / 454.3 MB, free: 9.852 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001976/0.5753, allocations: 144.6 kB / 454.4 MB, free: 9.711 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5753, allocations: 4 kB / 454.4 MB, free: 9.707 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0008225/0.5762, allocations: 119.5 kB / 454.5 MB, free: 9.59 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (c.v,l.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001353/0.5775, allocations: 0.9097 MB / 455.5 MB, free: 8.652 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.5786, allocations: 351.6 kB / 455.8 MB, free: 8.301 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.5786, allocations: 0 / 455.8 MB, free: 8.301 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003836/0.579, allocations: 189.6 kB / 456 MB, free: 8.105 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.5795, allocations: 31.88 kB / 456 MB, free: 8.078 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003104/0.5826, allocations: 0.7178 MB / 456.7 MB, free: 7.312 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.5831, allocations: 0.756 MB / 457.5 MB, free: 6.527 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.5833, allocations: 67.41 kB / 457.6 MB, free: 6.461 MB / 347.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5833, allocations: 4 kB / 457.6 MB, free: 6.457 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.77/3.353, allocations: 4.5 MB / 462.1 MB, free: 1.984 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator_fmu --startTime=0 --stopTime=0.01 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.mat does not exist to compare? outputFormat=mat