Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.NonInvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",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.001428/0.001428, allocations: 176.4 kB / 8.348 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.387/1.387, allocations: 221.5 MB / 230.3 MB, free: 7.52 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.0008683/0.0008685, allocations: 96.7 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.991e-05/1.992e-05, allocations: 4 kB / 337.2 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09588, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2961/0.392, allocations: 80.44 MB / 468 MB, free: 14.35 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.3923, allocations: 81.36 kB / 468.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01807/0.4104, allocations: 6.394 MB / 474.5 MB, free: 7.863 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4104, allocations: 0 / 474.5 MB, free: 7.863 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.991e-05/0.4104, allocations: 4 kB / 474.5 MB, free: 7.859 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.0009887/0.4114, allocations: 0.5966 MB / 475.1 MB, free: 7.215 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.4115, allocations: 8.031 kB / 475.1 MB, free: 7.207 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.403e-05/0.4116, allocations: 35.56 kB / 475.1 MB, free: 7.172 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.4119, allocations: 299 kB / 475.4 MB, free: 6.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.412, allocations: 8 kB / 475.4 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.412, allocations: 20 kB / 475.4 MB, free: 6.812 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003271/0.4124, allocations: 173.5 kB / 475.6 MB, free: 6.645 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000397/0.4128, allocations: 246.5 kB / 475.9 MB, free: 6.391 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.4128, allocations: 0 / 475.9 MB, free: 6.391 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.4128, allocations: 0 / 475.9 MB, free: 6.391 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.4128, allocations: 8 kB / 475.9 MB, free: 6.383 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.4146, allocations: 1.13 MB / 477 MB, free: 5.184 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002824/0.4149, allocations: 138.7 kB / 477.1 MB, free: 5.039 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.415, allocations: 60.84 kB / 477.2 MB, free: 4.977 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.4151, allocations: 7.984 kB / 477.2 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002174/0.4153, allocations: 129.9 kB / 477.3 MB, free: 4.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.4153, allocations: 0 / 477.3 MB, free: 4.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006729/0.416, allocations: 235.9 kB / 477.6 MB, free: 4.582 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.072e-05/0.4161, allocations: 110.8 kB / 477.7 MB, free: 4.449 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.4163, allocations: 226.1 kB / 477.9 MB, free: 4.223 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.4163, allocations: 29.7 kB / 477.9 MB, free: 4.188 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.4165, allocations: 203.6 kB / 478.1 MB, free: 3.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.4166, allocations: 43.45 kB / 478.2 MB, free: 3.938 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.26e-05/0.4166, allocations: 0 / 478.2 MB, free: 3.938 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4167, allocations: 334.8 kB / 478.5 MB, free: 3.602 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.4168, allocations: 64.23 kB / 478.5 MB, free: 3.535 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.417, allocations: 150.7 kB / 478.7 MB, free: 3.344 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.4171, allocations: 69.14 kB / 478.8 MB, free: 3.277 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4171, allocations: 0 / 478.8 MB, free: 3.277 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006944/0.4178, allocations: 323.7 kB / 479.1 MB, free: 2.953 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.027e-05/0.4179, allocations: 37.66 kB / 479.1 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.4179, allocations: 7.984 kB / 479.1 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002412/0.4181, allocations: 48.84 kB / 479.2 MB, free: 2.852 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.4184, allocations: 59.94 kB / 479.2 MB, free: 2.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.42, allocations: 1.587 MB / 480.8 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003458/0.4203, allocations: 60 kB / 480.9 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.4204, allocations: 12 kB / 480.9 MB, free: 1.02 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: buffer.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: 13 * 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 (24): * Single equations (assignments): 22 * 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.0001679/0.4206, allocations: 127.2 kB / 481 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005338/0.4211, allocations: 230.1 kB / 481.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.788e-05/0.4211, allocations: 31.7 kB / 481.3 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.856e-05/0.4212, allocations: 21.92 kB / 481.3 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.4212, allocations: 7.938 kB / 481.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.4212, allocations: 0 / 481.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.4212, allocations: 3.984 kB / 481.3 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002703/0.4215, allocations: 278 kB / 481.6 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4215, allocations: 48 / 481.6 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001488/0.4217, allocations: 31.95 kB / 481.6 MB, free: 256 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001211/0.4218, allocations: 56.78 kB / 481.7 MB, free: 196 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.4218, allocations: 0 / 481.7 MB, free: 196 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001484/0.4233, allocations: 1.591 MB / 483.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4233, allocations: 0 / 483.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005609/0.4239, allocations: 264.8 kB / 483.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.429e-05/0.424, allocations: 92.92 kB / 483.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.68e-05/0.424, allocations: 4 kB / 483.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002639/0.4243, allocations: 43.95 kB / 483.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.66e-05/0.4244, allocations: 19.97 kB / 483.7 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.4244, allocations: 0 / 483.7 MB, free: 14.03 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000173/0.4246, allocations: 182 kB / 483.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.643e-06/0.4246, allocations: 0 / 483.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004014/0.425, allocations: 83.62 kB / 483.9 MB, free: 13.77 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.0008613/0.4259, allocations: 0.8004 MB / 484.7 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004874/0.4264, allocations: 329 kB / 485 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4264, allocations: 0 / 485 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002218/0.4266, allocations: 181.7 kB / 485.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.4269, allocations: 45.23 kB / 485.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003106/0.43, allocations: 0.8548 MB / 486.1 MB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.4304, allocations: 0.7599 MB / 486.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001432/0.4305, allocations: 34.03 kB / 486.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.4307, allocations: 79.42 kB / 487 MB, free: 10.57 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4307, allocations: 0 / 487 MB, free: 10.57 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02402/0.4547, allocations: 5.237 MB / 492.2 MB, free: 5.387 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/0.455, allocations: 159.5 kB / 492.4 MB, free: 5.191 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/2.169, allocations: 0 / 492.4 MB, free: 5.191 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat does not exist to compare? outputFormat=mat