Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",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.001435/0.001435, allocations: 175.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.817/1.817, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.00084/0.00084, allocations: 93.39 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.106e-05/2.132e-05, allocations: 4 kB / 337.2 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1017, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3116/0.4133, allocations: 80.45 MB / 468 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.4136, allocations: 77.12 kB / 468.1 MB, free: 14.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01757/0.4312, allocations: 6.385 MB / 474.5 MB, free: 7.789 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.4312, allocations: 0 / 474.5 MB, free: 7.789 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.4312, allocations: 8 kB / 474.5 MB, free: 7.781 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009726/0.4322, allocations: 0.5927 MB / 475.1 MB, free: 7.141 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.4322, allocations: 12.03 kB / 475.1 MB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.686e-05/0.4323, allocations: 31.62 kB / 475.1 MB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003693/0.4327, allocations: 302.9 kB / 475.4 MB, free: 6.762 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.4327, allocations: 8 kB / 475.4 MB, free: 6.754 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.946e-05/0.4328, allocations: 20 kB / 475.4 MB, free: 6.734 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003605/0.4331, allocations: 177.5 kB / 475.6 MB, free: 6.562 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004235/0.4336, allocations: 238.6 kB / 475.9 MB, free: 6.316 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.4336, allocations: 4 kB / 475.9 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.4336, allocations: 0 / 475.9 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.4336, allocations: 7.984 kB / 475.9 MB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.4355, allocations: 1.13 MB / 477 MB, free: 5.105 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002942/0.4358, allocations: 154.6 kB / 477.1 MB, free: 4.945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.497e-05/0.4359, allocations: 56.86 kB / 477.2 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.4359, allocations: 0 / 477.2 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002163/0.4361, allocations: 129.9 kB / 477.3 MB, free: 4.738 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.363e-06/0.4361, allocations: 0 / 477.3 MB, free: 4.738 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006558/0.4368, allocations: 226.2 kB / 477.6 MB, free: 4.508 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/0.4369, allocations: 110.8 kB / 477.7 MB, free: 4.375 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002652/0.4371, allocations: 238 kB / 477.9 MB, free: 4.137 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.4372, allocations: 25.7 kB / 477.9 MB, free: 4.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.4373, allocations: 199.7 kB / 478.1 MB, free: 3.902 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.633e-05/0.4374, allocations: 43.45 kB / 478.2 MB, free: 3.859 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.4374, allocations: 0 / 478.2 MB, free: 3.859 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.4375, allocations: 334.8 kB / 478.5 MB, free: 3.523 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.4377, allocations: 60.41 kB / 478.5 MB, free: 3.461 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.4379, allocations: 148.7 kB / 478.7 MB, free: 3.273 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.438, allocations: 70.38 kB / 478.8 MB, free: 3.207 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.438, allocations: 0 / 478.8 MB, free: 3.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006747/0.4387, allocations: 316.1 kB / 479.1 MB, free: 2.891 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.68e-05/0.4387, allocations: 41.64 kB / 479.1 MB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.4387, allocations: 4.062 kB / 479.1 MB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001955/0.4389, allocations: 52.78 kB / 479.2 MB, free: 2.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.4392, allocations: 51.97 kB / 479.2 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/0.4406, allocations: 1.483 MB / 480.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003308/0.441, allocations: 52.09 kB / 480.7 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.809e-05/0.441, allocations: 19.98 kB / 480.8 MB, free: 1.07 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gain.opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 21 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001577/0.4412, allocations: 122.2 kB / 480.9 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005265/0.4417, allocations: 238.1 kB / 481.1 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.353e-05/0.4417, allocations: 19.72 kB / 481.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.518e-05/0.4418, allocations: 25.95 kB / 481.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.4418, allocations: 0 / 481.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.4418, allocations: 3.938 kB / 481.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.4418, allocations: 3.953 kB / 481.2 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002568/0.4421, allocations: 278 kB / 481.4 MB, free: 348 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.4421, allocations: 0 / 481.4 MB, free: 348 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.4423, allocations: 31.97 kB / 481.5 MB, free: 316 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001145/0.4424, allocations: 44.84 kB / 481.5 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.4424, allocations: 0 / 481.5 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.4438, allocations: 1.487 MB / 483 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4438, allocations: 0 / 483 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005419/0.4443, allocations: 263.1 kB / 483.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.443e-05/0.4444, allocations: 100.8 kB / 483.4 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.4445, allocations: 0 / 483.4 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000265/0.4447, allocations: 47.91 kB / 483.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.42e-05/0.4448, allocations: 19.97 kB / 483.4 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.4448, allocations: 4 kB / 483.4 MB, free: 14.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001505/0.445, allocations: 178 kB / 483.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.445, allocations: 0 / 483.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003583/0.4454, allocations: 75.84 kB / 483.7 MB, free: 13.95 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) * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008228/0.4462, allocations: 0.8072 MB / 484.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004539/0.4467, allocations: 321 kB / 484.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.4467, allocations: 0 / 484.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002026/0.4469, allocations: 186.2 kB / 485 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.4472, allocations: 42.59 kB / 485 MB, free: 12.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007079/0.4479, allocations: 324.1 kB / 485.3 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.4482, allocations: 0.7677 MB / 486.1 MB, free: 11.4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001242/0.4483, allocations: 30.05 kB / 486.1 MB, free: 11.37 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.4485, allocations: 83.34 kB / 486.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4485, allocations: 0 / 486.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02412/0.4726, allocations: 5.236 MB / 491.4 MB, free: 6.09 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/0.4728, allocations: 152.8 kB / 491.6 MB, free: 5.898 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/2.336, allocations: 0 / 491.6 MB, free: 5.898 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat does not exist to compare? outputFormat=mat