Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",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.002176/0.002176, allocations: 181.7 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.169/2.169, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001042/0.001042, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.37e-05/4.384e-05, allocations: 7.938 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1024, allocations: 47.58 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.411/0.5134, allocations: 79.04 MB / 448.2 MB, free: 13.83 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.5138, allocations: 79.06 kB / 448.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0275/0.5413, allocations: 5.669 MB / 454 MB, free: 8.922 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5414, allocations: 4 kB / 454 MB, free: 8.918 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.231e-05/0.5414, allocations: 4 kB / 454 MB, free: 8.914 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001534/0.543, allocations: 0.5756 MB / 454.6 MB, free: 8.309 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.844e-05/0.543, allocations: 8.031 kB / 454.6 MB, free: 8.301 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.5431, allocations: 52.67 kB / 454.6 MB, free: 8.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.5433, allocations: 23.72 kB / 454.6 MB, free: 8.227 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000569/0.5439, allocations: 275.4 kB / 454.9 MB, free: 7.945 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/0.5439, allocations: 16.14 kB / 454.9 MB, free: 7.934 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/0.544, allocations: 23.56 kB / 455 MB, free: 7.918 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000577/0.5446, allocations: 202.2 kB / 455.2 MB, free: 7.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.5446, allocations: 0 / 455.2 MB, free: 7.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.715e-05/0.5446, allocations: 6.75 kB / 455.2 MB, free: 7.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.5447, allocations: 4 kB / 455.2 MB, free: 7.766 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004974/0.5452, allocations: 161.7 kB / 455.3 MB, free: 7.668 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002759/0.5479, allocations: 0.93 MB / 456.3 MB, free: 6.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005984/0.5486, allocations: 157.8 kB / 456.4 MB, free: 6.703 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.5488, allocations: 53.73 kB / 456.5 MB, free: 6.668 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.757e-05/0.5488, allocations: 4 kB / 456.5 MB, free: 6.664 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000343/0.5492, allocations: 131.8 kB / 456.6 MB, free: 6.539 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.385e-06/0.5492, allocations: 0 / 456.6 MB, free: 6.539 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008724/0.5501, allocations: 228.7 kB / 456.8 MB, free: 6.344 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.669e-05/0.5502, allocations: 110.4 kB / 456.9 MB, free: 6.215 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004179/0.5506, allocations: 227 kB / 457.1 MB, free: 6.023 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.545e-05/0.5507, allocations: 32.27 kB / 457.2 MB, free: 5.988 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.5508, allocations: 232.1 kB / 457.4 MB, free: 5.781 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.365e-05/0.5509, allocations: 46.31 kB / 457.4 MB, free: 5.742 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.859e-05/0.551, allocations: 2.562 kB / 457.5 MB, free: 5.742 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.5511, allocations: 328.9 kB / 457.8 MB, free: 5.418 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.5513, allocations: 47.06 kB / 457.8 MB, free: 5.391 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002473/0.5515, allocations: 121.2 kB / 457.9 MB, free: 5.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.5518, allocations: 89.42 kB / 458 MB, free: 5.195 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.5518, allocations: 0 / 458 MB, free: 5.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0009619/0.5528, allocations: 305 kB / 458.3 MB, free: 4.941 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003398/0.5531, allocations: 0.6395 MB / 459 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.5531, allocations: 8 kB / 459 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003292/0.5535, allocations: 46.09 kB / 459 MB, free: 4.215 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003632/0.5539, allocations: 43.97 kB / 459.1 MB, free: 4.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006361/0.5545, allocations: 0.5837 MB / 459.6 MB, free: 3.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005719/0.5551, allocations: 55.11 kB / 459.7 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.414e-05/0.5552, allocations: 10.31 kB / 459.7 MB, free: 3.531 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.5552, allocations: 4 kB / 459.7 MB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006551/0.5558, allocations: 233.5 kB / 459.9 MB, free: 3.348 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.5559, allocations: 0 / 459.9 MB, free: 3.348 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000164/0.556, allocations: 38.47 kB / 460 MB, free: 3.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003518/0.5564, allocations: 48.09 kB / 460 MB, free: 3.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/0.5583, allocations: 1.531 MB / 461.6 MB, free: 1.719 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004637/0.5588, allocations: 47.41 kB / 461.6 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.784e-05/0.5588, allocations: 11.3 kB / 461.6 MB, free: 1.668 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001746/0.559, allocations: 125.7 kB / 461.7 MB, free: 1.543 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.665e-05/0.5591, allocations: 19.77 kB / 461.8 MB, free: 1.523 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.111e-05/0.5592, allocations: 30.89 kB / 461.8 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.5592, allocations: 0 / 461.8 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.5592, allocations: 0 / 461.8 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.607e-06/0.5592, allocations: 0 / 461.8 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004259/0.5597, allocations: 304.9 kB / 462.1 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.5597, allocations: 0 / 462.1 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002627/0.56, allocations: 31.36 kB / 462.1 MB, free: 1.172 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000239/0.5602, allocations: 45.83 kB / 462.2 MB, free: 1.133 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.5602, allocations: 11.89 kB / 462.2 MB, free: 1.125 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002114/0.5624, allocations: 1.511 MB / 463.7 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.5624, allocations: 3.984 kB / 463.7 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008121/0.5632, allocations: 246.8 kB / 463.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.5634, allocations: 104.8 kB / 464 MB, free: 15.26 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.57e-05/0.5635, allocations: 4 kB / 464 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004475/0.5639, allocations: 35.53 kB / 464.1 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.5641, allocations: 27.83 kB / 464.1 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.5641, allocations: 4 kB / 464.1 MB, free: 15.2 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002803/0.5644, allocations: 184.6 kB / 464.3 MB, free: 15.05 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5644, allocations: 0 / 464.3 MB, free: 15.05 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007095/0.5651, allocations: 123.4 kB / 464.4 MB, free: 14.94 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001421/0.5665, allocations: 0.7939 MB / 465.2 MB, free: 14.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.5677, allocations: 471.8 kB / 465.7 MB, free: 13.74 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5678, allocations: 4.062 kB / 465.7 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004148/0.5682, allocations: 189.7 kB / 465.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004527/0.5687, allocations: 44.52 kB / 465.9 MB, free: 13.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.5698, allocations: 351.4 kB / 466.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004421/0.5703, allocations: 0.7563 MB / 467 MB, free: 12.33 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002366/0.5706, allocations: 67.42 kB / 467 MB, free: 12.27 MB / 346.7 MB Notification: Performance of SimCode: time 1.373e-06/0.5706, allocations: 0 / 467 MB, free: 12.27 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.543/3.114, allocations: 5.034 MB / 472.1 MB, free: 7.23 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat does not exist to compare? outputFormat=mat