Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",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.001469/0.001469, allocations: 181.2 kB / 16.38 MB, free: 5.762 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.428/1.428, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009914/0.0009913, allocations: 95.47 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002936/0.0002937, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3227, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1104/0.4332, allocations: 79.9 MB / 481.5 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.4335, allocations: 75.95 kB / 481.6 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01648/0.45, allocations: 5.98 MB / 487.5 MB, free: 10.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.45, allocations: 0 / 487.5 MB, free: 10.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.446e-05/0.4501, allocations: 11.94 kB / 487.5 MB, free: 10.48 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001129/0.4512, allocations: 0.6149 MB / 488.2 MB, free: 9.809 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.4513, allocations: 12.03 kB / 488.2 MB, free: 9.797 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.516e-05/0.4513, allocations: 58.55 kB / 488.2 MB, free: 9.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.807e-05/0.4514, allocations: 39.55 kB / 488.3 MB, free: 9.691 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.4518, allocations: 267.4 kB / 488.5 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.4518, allocations: 20.56 kB / 488.6 MB, free: 9.367 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.4518, allocations: 24 kB / 488.6 MB, free: 9.344 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006707/0.4525, allocations: 307.3 kB / 488.9 MB, free: 9.035 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.4525, allocations: 0 / 488.9 MB, free: 9.035 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.48e-05/0.4526, allocations: 12 kB / 488.9 MB, free: 9.023 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.4526, allocations: 4 kB / 488.9 MB, free: 9.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007983/0.4534, allocations: 281.5 kB / 489.2 MB, free: 8.746 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.4552, allocations: 1.113 MB / 490.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008236/0.456, allocations: 242.5 kB / 490.5 MB, free: 7.293 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.4561, allocations: 8.078 kB / 490.5 MB, free: 7.285 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004775/0.4566, allocations: 182 kB / 490.7 MB, free: 7.086 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 3.627e-06/0.4566, allocations: 0 / 490.7 MB, free: 7.086 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.002013/0.4586, allocations: 0.5418 MB / 491.2 MB, free: 6.516 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.293e-05/0.4587, allocations: 110.8 kB / 491.3 MB, free: 6.383 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002721/0.459, allocations: 245.9 kB / 491.6 MB, free: 6.137 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.459, allocations: 33.69 kB / 491.6 MB, free: 6.098 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.4591, allocations: 199.5 kB / 491.8 MB, free: 5.895 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.662e-05/0.4592, allocations: 43.45 kB / 491.9 MB, free: 5.852 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.344e-05/0.4592, allocations: 4 kB / 491.9 MB, free: 5.848 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.4594, allocations: 334.8 kB / 492.2 MB, free: 5.512 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003214/0.4597, allocations: 100.2 kB / 492.3 MB, free: 5.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003935/0.4601, allocations: 215.7 kB / 492.5 MB, free: 5.152 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003586/0.4605, allocations: 146.5 kB / 492.6 MB, free: 5.004 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4605, allocations: 3.938 kB / 492.6 MB, free: 5 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001132/0.4616, allocations: 451.6 kB / 493.1 MB, free: 4.543 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/0.4617, allocations: 33.69 kB / 493.1 MB, free: 4.504 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.4617, allocations: 4 kB / 493.1 MB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003174/0.462, allocations: 68.91 kB / 493.2 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.4622, allocations: 59.89 kB / 493.2 MB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002251/0.4645, allocations: 1.609 MB / 494.9 MB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.4648, allocations: 59.66 kB / 494.9 MB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.502e-05/0.4649, allocations: 15.98 kB / 494.9 MB, free: 2.559 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001581/0.465, allocations: 149.7 kB / 495.1 MB, free: 2.402 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.628e-05/0.4651, allocations: 23.72 kB / 495.1 MB, free: 2.379 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.964e-05/0.4651, allocations: 29.7 kB / 495.1 MB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.4651, allocations: 0 / 495.1 MB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.4651, allocations: 0 / 495.1 MB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.4651, allocations: 0 / 495.1 MB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002915/0.4654, allocations: 309.3 kB / 495.4 MB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4655, allocations: 0 / 495.4 MB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.4656, allocations: 27.92 kB / 495.5 MB, free: 1.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002368/0.4658, allocations: 68.8 kB / 495.5 MB, free: 1.898 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.4659, allocations: 0 / 495.5 MB, free: 1.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/0.4679, allocations: 1.601 MB / 497.1 MB, free: 168 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4679, allocations: 0 / 497.1 MB, free: 168 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009986/0.4689, allocations: 341.5 kB / 497.5 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.4691, allocations: 112.8 kB / 497.6 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.734e-05/0.4691, allocations: 7.953 kB / 497.6 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.4694, allocations: 39.97 kB / 497.6 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.792e-05/0.4695, allocations: 23.95 kB / 497.6 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.4695, allocations: 0 / 497.6 MB, free: 15.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001969/0.4697, allocations: 202 kB / 497.8 MB, free: 15.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4697, allocations: 0 / 497.8 MB, free: 15.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003329/0.47, allocations: 79.84 kB / 497.9 MB, free: 15.33 MB / 378.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 (7): * Single equations (assignments): 4 * 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.001346/0.4714, allocations: 0.8835 MB / 498.8 MB, free: 14.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009485/0.4723, allocations: 437.8 kB / 499.2 MB, free: 13.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.4724, allocations: 0 / 499.2 MB, free: 13.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004321/0.4728, allocations: 231.2 kB / 499.5 MB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002366/0.473, allocations: 39.94 kB / 499.5 MB, free: 13.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003765/0.4768, allocations: 3.652 MB / 0.4914 GB, free: 9.938 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.4772, allocations: 0.7599 MB / 0.4921 GB, free: 9.148 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001143/0.4773, allocations: 22.3 kB / 0.4921 GB, free: 9.125 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.4774, allocations: 75.41 kB / 0.4922 GB, free: 9.051 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4774, allocations: 0 / 0.4922 GB, free: 9.051 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02035/0.4978, allocations: 5.99 MB / 0.498 GB, free: 3.254 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/0.498, allocations: 199.3 kB / 0.4982 GB, free: 3.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.873/2.371, allocations: 64 / 0.4982 GB, free: 3.02 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat