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.0009673/0.0009673, allocations: 175 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.306/1.306, allocations: 221.3 MB / 235.5 MB, free: 2.965 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.0008807/0.0008808, allocations: 87.75 kB / 286.5 MB, free: 260 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.666e-05/2.67e-05, allocations: 4 kB / 343.9 MB, free: 4.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09768/0.09772, allocations: 50.42 MB / 394.4 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2813/0.3791, allocations: 79.83 MB / 474.2 MB, free: 7.652 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001977/0.3793, allocations: 73.53 kB / 474.3 MB, free: 7.582 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01638/0.3957, allocations: 5.98 MB / 480.2 MB, free: 1.586 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3958, allocations: 0 / 480.2 MB, free: 1.586 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.953e-05/0.3958, allocations: 8 kB / 480.2 MB, free: 1.578 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001005/0.3968, allocations: 0.5761 MB / 480.8 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.3969, allocations: 12.03 kB / 480.8 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.337e-05/0.3969, allocations: 58.53 kB / 480.9 MB, free: 0.875 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.564e-05/0.397, allocations: 39.62 kB / 480.9 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/0.3973, allocations: 259.5 kB / 481.2 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.3974, allocations: 20.56 kB / 481.2 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.02e-05/0.3974, allocations: 27.98 kB / 481.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004194/0.3978, allocations: 263.4 kB / 481.5 MB, free: 228 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.3979, allocations: 0 / 481.5 MB, free: 228 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.626e-05/0.3979, allocations: 4 kB / 481.5 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.3979, allocations: 8 kB / 481.5 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00033/0.3982, allocations: 177.7 kB / 481.7 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.3999, allocations: 1.113 MB / 482.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003502/0.4003, allocations: 142.6 kB / 482.9 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.779e-05/0.4004, allocations: 52.86 kB / 483 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.4005, allocations: 0 / 483 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/0.4007, allocations: 133.9 kB / 483.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.353e-06/0.4007, allocations: 0 / 483.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006042/0.4013, allocations: 203.8 kB / 483.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.4014, allocations: 106.8 kB / 483.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.4016, allocations: 251.1 kB / 483.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.4017, allocations: 29.7 kB / 483.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.4018, allocations: 207.5 kB / 483.9 MB, free: 13.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.989e-05/0.4019, allocations: 35.45 kB / 483.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/0.4019, allocations: 4 kB / 483.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.402, allocations: 338.8 kB / 484.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.4021, allocations: 52.23 kB / 484.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.4023, allocations: 166.1 kB / 484.5 MB, free: 13 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.4025, allocations: 94.36 kB / 484.6 MB, free: 12.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4025, allocations: 0 / 484.6 MB, free: 12.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006889/0.4032, allocations: 346.2 kB / 484.9 MB, free: 12.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/0.4032, allocations: 34.11 kB / 484.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.4032, allocations: 7.938 kB / 484.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002156/0.4035, allocations: 64.81 kB / 485 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002072/0.4037, allocations: 51.91 kB / 485.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.4053, allocations: 1.517 MB / 486.6 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.4056, allocations: 59.66 kB / 486.6 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.4057, allocations: 8 kB / 486.6 MB, free: 10.67 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 () * 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.0001097/0.4058, allocations: 128.9 kB / 486.8 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.751e-05/0.4058, allocations: 23.72 kB / 486.8 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.059e-05/0.4059, allocations: 25.83 kB / 486.8 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.4059, allocations: 3.938 kB / 486.8 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-06/0.4059, allocations: 0 / 486.8 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.4059, allocations: 3.984 kB / 486.8 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002718/0.4062, allocations: 305.3 kB / 487.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.4062, allocations: 0 / 487.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001424/0.4063, allocations: 35.97 kB / 487.2 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001291/0.4065, allocations: 48.83 kB / 487.2 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.4065, allocations: 0 / 487.2 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/0.4079, allocations: 1.512 MB / 488.7 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4079, allocations: 4.062 kB / 488.7 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005255/0.4085, allocations: 226.6 kB / 488.9 MB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.4086, allocations: 116.7 kB / 489.1 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.425e-05/0.4086, allocations: 3.953 kB / 489.1 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002598/0.4089, allocations: 39.97 kB / 489.1 MB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.298e-05/0.409, allocations: 23.95 kB / 489.1 MB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.409, allocations: 4 kB / 489.1 MB, free: 7.949 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001782/0.4092, allocations: 203.1 kB / 489.3 MB, free: 7.754 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4092, allocations: 0 / 489.3 MB, free: 7.754 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003113/0.4095, allocations: 79.84 kB / 489.4 MB, free: 7.676 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 (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.0008224/0.4104, allocations: 0.766 MB / 490.2 MB, free: 6.879 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004842/0.4109, allocations: 333.8 kB / 490.5 MB, free: 6.527 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4109, allocations: 0 / 490.5 MB, free: 6.527 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002323/0.4111, allocations: 191.3 kB / 490.7 MB, free: 6.328 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002332/0.4114, allocations: 40.81 kB / 490.7 MB, free: 6.289 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007792/0.4121, allocations: 334.1 kB / 491 MB, free: 5.926 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.4125, allocations: 0.7599 MB / 491.8 MB, free: 5.141 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.4126, allocations: 22.08 kB / 491.8 MB, free: 5.117 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.4127, allocations: 71.41 kB / 491.9 MB, free: 5.047 MB / 362.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4128, allocations: 4 kB / 491.9 MB, free: 5.043 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02036/0.4331, allocations: 5.936 MB / 497.8 MB, free: 15.27 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002813/0.4335, allocations: 181.6 kB / 498 MB, free: 15.04 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.72/2.153, allocations: 4 kB / 498 MB, free: 15.04 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