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.001424/0.001424, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 221.3 MB / 235.5 MB, free: 2.93 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.0008257/0.0008258, allocations: 91.8 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.676e-05/2.679e-05, allocations: 4 kB / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08873/0.08877, allocations: 50.42 MB / 394.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3068/0.3956, allocations: 81.11 MB / 475.5 MB, free: 6.324 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.3959, allocations: 79.95 kB / 475.5 MB, free: 6.246 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01781/0.4137, allocations: 6.449 MB / 482 MB, free: 15.78 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4138, allocations: 0 / 482 MB, free: 15.78 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.4138, allocations: 4 kB / 482 MB, free: 15.77 MB / 362.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.001044/0.4148, allocations: 0.5927 MB / 482.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.4149, allocations: 8.031 kB / 482.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.988e-05/0.415, allocations: 62.53 kB / 482.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.554e-05/0.415, allocations: 35.62 kB / 482.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003605/0.4154, allocations: 295 kB / 483 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.4154, allocations: 20.56 kB / 483 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.896e-05/0.4155, allocations: 20 kB / 483 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004652/0.416, allocations: 276 kB / 483.3 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.416, allocations: 0 / 483.3 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.416, allocations: 15.94 kB / 483.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.416, allocations: 4 kB / 483.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003399/0.4164, allocations: 194.2 kB / 483.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.4182, allocations: 1.197 MB / 484.7 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003243/0.4186, allocations: 150.7 kB / 484.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.4187, allocations: 64.86 kB / 484.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.4187, allocations: 4 kB / 484.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/0.4189, allocations: 133.9 kB / 485 MB, free: 12.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.372e-06/0.4189, allocations: 0 / 485 MB, free: 12.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006369/0.4196, allocations: 243 kB / 485.3 MB, free: 12.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.4197, allocations: 110.8 kB / 485.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002622/0.4199, allocations: 251 kB / 485.6 MB, free: 11.87 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.42, allocations: 33.7 kB / 485.7 MB, free: 11.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.4201, allocations: 199.8 kB / 485.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.809e-05/0.4201, allocations: 39.45 kB / 485.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.422e-05/0.4201, allocations: 8 kB / 485.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4203, allocations: 330.8 kB / 486.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.4204, allocations: 64.47 kB / 486.3 MB, free: 11.19 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.4206, allocations: 156.9 kB / 486.4 MB, free: 10.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001433/0.4207, allocations: 103 kB / 486.5 MB, free: 10.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.4207, allocations: 0 / 486.5 MB, free: 10.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007327/0.4215, allocations: 372.9 kB / 486.9 MB, free: 10.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.4215, allocations: 33.7 kB / 486.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.4215, allocations: 4.125 kB / 487 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002325/0.4218, allocations: 52.83 kB / 487 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.422, allocations: 55.91 kB / 487.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.4239, allocations: 1.647 MB / 488.7 MB, free: 8.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/0.4244, allocations: 71.95 kB / 488.8 MB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.761e-05/0.4244, allocations: 8 kB / 488.8 MB, free: 8.492 MB / 362.7 MB 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.0001149/0.4245, allocations: 130.5 kB / 488.9 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.508e-05/0.4246, allocations: 23.84 kB / 488.9 MB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.343e-05/0.4247, allocations: 29.95 kB / 489 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.4247, allocations: 8 kB / 489 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.4247, allocations: 0 / 489 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.4247, allocations: 0 / 489 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003406/0.4251, allocations: 321.4 kB / 489.3 MB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.4251, allocations: 4 kB / 489.3 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.4253, allocations: 27.97 kB / 489.3 MB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001694/0.4254, allocations: 60.81 kB / 489.4 MB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.4255, allocations: 0 / 489.4 MB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00162/0.4271, allocations: 1.534 MB / 490.9 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.4271, allocations: 192 / 490.9 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005775/0.4277, allocations: 281.6 kB / 491.2 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.119e-05/0.4278, allocations: 108.8 kB / 491.3 MB, free: 5.758 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.257e-05/0.4278, allocations: 0 / 491.3 MB, free: 5.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.4281, allocations: 47.86 kB / 491.3 MB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.749e-05/0.4282, allocations: 23.97 kB / 491.4 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.4282, allocations: 7.984 kB / 491.4 MB, free: 5.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002015/0.4284, allocations: 195.1 kB / 491.6 MB, free: 5.488 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4284, allocations: 0 / 491.6 MB, free: 5.488 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003724/0.4288, allocations: 79.75 kB / 491.6 MB, free: 5.41 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.0008866/0.4297, allocations: 0.8121 MB / 492.4 MB, free: 4.566 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005358/0.4302, allocations: 338 kB / 492.8 MB, free: 4.211 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.4303, allocations: 3.938 kB / 492.8 MB, free: 4.207 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002517/0.4305, allocations: 194.5 kB / 493 MB, free: 4.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.4308, allocations: 41.11 kB / 493 MB, free: 3.965 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007764/0.4316, allocations: 349.4 kB / 493.4 MB, free: 3.586 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.4319, allocations: 0.7677 MB / 494.1 MB, free: 2.793 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.4321, allocations: 30.05 kB / 494.2 MB, free: 2.762 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.4322, allocations: 79.42 kB / 494.2 MB, free: 2.684 MB / 362.7 MB Notification: Performance of SimCode: time 1.653e-06/0.4322, allocations: 0 / 494.2 MB, free: 2.684 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02101/0.4532, allocations: 6.056 MB / 0.4886 GB, free: 12.81 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/0.4534, allocations: 191.8 kB / 0.4887 GB, free: 12.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/2.191, allocations: 0 / 0.4887 GB, free: 12.59 MB / 378.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