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.001512/0.001516, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.957/1.957, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001175/0.001175, allocations: 101.2 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004232/0.0004236, allocations: 12 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3316, allocations: 47.58 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.46, allocations: 79.13 MB / 453.8 MB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003316/0.4604, allocations: 83.95 kB / 453.9 MB, free: 1.438 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02758/0.488, allocations: 5.683 MB / 459.5 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.488, allocations: 0 / 459.5 MB, free: 11.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.274e-05/0.4881, allocations: 4 kB / 459.6 MB, free: 11.73 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001651/0.4897, allocations: 0.6067 MB / 460.2 MB, free: 11.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.4898, allocations: 12.03 kB / 460.2 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/0.4899, allocations: 50.55 kB / 460.2 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.512e-05/0.49, allocations: 31.62 kB / 460.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000543/0.4906, allocations: 279.3 kB / 460.5 MB, free: 10.65 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.4906, allocations: 16.39 kB / 460.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.026e-05/0.4907, allocations: 20 kB / 460.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.4917, allocations: 255.2 kB / 460.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.4918, allocations: 0 / 460.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.147e-05/0.4918, allocations: 8 kB / 460.8 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.4919, allocations: 4 kB / 460.8 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.4933, allocations: 289.6 kB / 461.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002695/0.496, allocations: 0.9362 MB / 462 MB, free: 9.055 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.4975, allocations: 275.1 kB / 462.3 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.71e-05/0.4975, allocations: 0 / 462.3 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007745/0.4983, allocations: 193.8 kB / 462.5 MB, free: 8.566 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.215e-06/0.4983, allocations: 0 / 462.5 MB, free: 8.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.003435/0.5018, allocations: 0.6509 MB / 463.1 MB, free: 7.891 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.26e-05/0.5019, allocations: 114.8 kB / 463.3 MB, free: 7.754 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004163/0.5023, allocations: 236 kB / 463.5 MB, free: 7.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.694e-05/0.5024, allocations: 29.7 kB / 463.5 MB, free: 7.484 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.5026, allocations: 226.3 kB / 463.7 MB, free: 7.262 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.138e-05/0.5027, allocations: 51.34 kB / 463.8 MB, free: 7.211 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-05/0.5027, allocations: 0 / 463.8 MB, free: 7.211 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.5028, allocations: 318.8 kB / 464.1 MB, free: 6.891 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005967/0.5035, allocations: 111.9 kB / 464.2 MB, free: 6.781 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006388/0.5041, allocations: 174.1 kB / 464.4 MB, free: 6.586 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006157/0.5047, allocations: 137.6 kB / 464.5 MB, free: 6.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.5048, allocations: 4 kB / 464.5 MB, free: 6.441 MB / 346.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001812/0.5066, allocations: 415.9 kB / 464.9 MB, free: 6.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003546/0.507, allocations: 0.645 MB / 465.6 MB, free: 5.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.507, allocations: 7.984 kB / 465.6 MB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005323/0.5075, allocations: 76.8 kB / 465.7 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000378/0.5079, allocations: 47.91 kB / 465.7 MB, free: 5.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008685/0.5088, allocations: 0.6149 MB / 466.3 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000582/0.5094, allocations: 55.67 kB / 466.4 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.333e-05/0.5095, allocations: 8 kB / 466.4 MB, free: 4.484 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.5095, allocations: 4 kB / 466.4 MB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001309/0.5108, allocations: 323.4 kB / 466.7 MB, free: 4.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.5109, allocations: 4.062 kB / 466.7 MB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.5111, allocations: 40.83 kB / 466.7 MB, free: 4.109 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003504/0.5114, allocations: 43.97 kB / 466.8 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001949/0.5134, allocations: 1.553 MB / 468.3 MB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004425/0.5139, allocations: 35.92 kB / 468.4 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.97e-05/0.5139, allocations: 11.98 kB / 468.4 MB, free: 2.336 MB / 346.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 () * Number of clocked 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.0002986/0.5142, allocations: 216.8 kB / 468.6 MB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.249e-05/0.5143, allocations: 31.73 kB / 468.6 MB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.132e-05/0.5144, allocations: 21.83 kB / 468.6 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.5144, allocations: 4 kB / 468.7 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.5144, allocations: 0 / 468.7 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.5144, allocations: 0 / 468.7 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004299/0.5149, allocations: 293.9 kB / 468.9 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5149, allocations: 0 / 468.9 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002968/0.5152, allocations: 35.91 kB / 469 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004184/0.5156, allocations: 72.81 kB / 469 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.644e-05/0.5157, allocations: 7.938 kB / 469.1 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003065/0.5188, allocations: 1.668 MB / 470.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.5188, allocations: 0 / 470.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.5205, allocations: 369.5 kB / 471.1 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.5207, allocations: 92.91 kB / 471.2 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.68e-05/0.5207, allocations: 19.92 kB / 471.2 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004405/0.5212, allocations: 39.95 kB / 471.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.5213, allocations: 19.97 kB / 471.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.5214, allocations: 4.375 kB / 471.3 MB, free: 15.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002917/0.5217, allocations: 180.5 kB / 471.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5217, allocations: 4 kB / 471.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007323/0.5224, allocations: 123.7 kB / 471.6 MB, free: 14.93 MB / 362.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) * Number of clocked states: 0 () * 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.002103/0.5245, allocations: 0.9134 MB / 472.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002295/0.5269, allocations: 0.6184 MB / 473.1 MB, free: 13.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5269, allocations: 0 / 473.1 MB, free: 13.33 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008081/0.5277, allocations: 253.8 kB / 473.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004373/0.5282, allocations: 32.55 kB / 473.4 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005437/0.5337, allocations: 2.56 MB / 475.9 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004381/0.5341, allocations: 0.7599 MB / 476.7 MB, free: 9.602 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.5344, allocations: 71.42 kB / 476.8 MB, free: 9.531 MB / 362.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5344, allocations: 0 / 476.8 MB, free: 9.531 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.874/3.408, allocations: 5.048 MB / 481.8 MB, free: 4.488 MB / 362.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