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.0009728/0.000973, allocations: 177.1 kB / 8.35 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.432/1.432, allocations: 221.5 MB / 230.3 MB, free: 7.504 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.0009405/0.0009403, allocations: 97.95 kB / 281.2 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.332e-05/2.334e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1439, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3584/0.5024, allocations: 79.18 MB / 466.7 MB, free: 15.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.5026, allocations: 71.95 kB / 466.8 MB, free: 15.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0171/0.5198, allocations: 5.912 MB / 472.7 MB, free: 9.508 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.5198, allocations: 4 kB / 472.7 MB, free: 9.504 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.5198, allocations: 8 kB / 472.7 MB, free: 9.496 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.0009628/0.5208, allocations: 0.5839 MB / 473.3 MB, free: 8.859 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.5208, allocations: 8.031 kB / 473.3 MB, free: 8.852 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.302e-05/0.5209, allocations: 31.62 kB / 473.4 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.5213, allocations: 259.6 kB / 473.6 MB, free: 8.523 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.889e-05/0.5213, allocations: 8 kB / 473.6 MB, free: 8.516 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.163e-05/0.5214, allocations: 16 kB / 473.6 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003175/0.5217, allocations: 157.1 kB / 473.8 MB, free: 8.348 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000365/0.5221, allocations: 230.3 kB / 474 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.5221, allocations: 0 / 474 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.5221, allocations: 0 / 474 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.5221, allocations: 8 kB / 474 MB, free: 8.102 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.5237, allocations: 1.058 MB / 475.1 MB, free: 6.965 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003168/0.524, allocations: 130.7 kB / 475.2 MB, free: 6.828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.871e-05/0.5241, allocations: 48.86 kB / 475.2 MB, free: 6.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.5241, allocations: 11.98 kB / 475.3 MB, free: 6.766 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000201/0.5244, allocations: 130 kB / 475.4 MB, free: 6.617 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.375e-06/0.5244, allocations: 3.984 kB / 475.4 MB, free: 6.613 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005817/0.525, allocations: 194.2 kB / 475.6 MB, free: 6.414 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.525, allocations: 102.8 kB / 475.7 MB, free: 6.289 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.5252, allocations: 220.5 kB / 475.9 MB, free: 6.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.5253, allocations: 29.7 kB / 475.9 MB, free: 6.035 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.5254, allocations: 199.6 kB / 476.1 MB, free: 5.836 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.477e-05/0.5254, allocations: 43.45 kB / 476.2 MB, free: 5.793 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.218e-05/0.5254, allocations: 0 / 476.2 MB, free: 5.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.821e-05/0.5256, allocations: 326.8 kB / 476.5 MB, free: 5.465 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.668e-05/0.5257, allocations: 56.22 kB / 476.5 MB, free: 5.406 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.5258, allocations: 157.9 kB / 476.7 MB, free: 5.203 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001031/0.5259, allocations: 57.28 kB / 476.7 MB, free: 5.148 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5259, allocations: 5.125 kB / 476.8 MB, free: 5.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000635/0.5266, allocations: 290.1 kB / 477 MB, free: 4.852 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.5266, allocations: 33.7 kB / 477.1 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.5266, allocations: 4 kB / 477.1 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001995/0.5268, allocations: 52.83 kB / 477.1 MB, free: 4.754 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002165/0.5271, allocations: 56 kB / 477.2 MB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001425/0.5285, allocations: 1.459 MB / 478.6 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003521/0.5289, allocations: 47.81 kB / 478.7 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.5289, allocations: 8 kB / 478.7 MB, free: 3.062 MB / 346.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.0001079/0.529, allocations: 131.4 kB / 478.8 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005241/0.5295, allocations: 186.1 kB / 479 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/0.5296, allocations: 27.67 kB / 479 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.335e-05/0.5297, allocations: 29.77 kB / 479.1 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.5297, allocations: 4 kB / 479.1 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.5297, allocations: 0 / 479.1 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.5297, allocations: 0 / 479.1 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002505/0.5299, allocations: 250.1 kB / 479.3 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.5299, allocations: 3.984 kB / 479.3 MB, free: 2.398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.5301, allocations: 23.98 kB / 479.3 MB, free: 2.375 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001341/0.5302, allocations: 56.83 kB / 479.4 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.5303, allocations: 192 / 479.4 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.5316, allocations: 1.459 MB / 480.9 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5316, allocations: 0 / 480.9 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004982/0.5321, allocations: 227.1 kB / 481.1 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.343e-05/0.5322, allocations: 108.9 kB / 481.2 MB, free: 384 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.513e-05/0.5323, allocations: 0 / 481.2 MB, free: 384 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002634/0.5325, allocations: 39.97 kB / 481.2 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.022e-05/0.5326, allocations: 23.95 kB / 481.2 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.5326, allocations: 0 / 481.2 MB, free: 320 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00014/0.5328, allocations: 172.5 kB / 481.4 MB, free: 152 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5328, allocations: 0 / 481.4 MB, free: 152 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003711/0.5332, allocations: 75.75 kB / 481.5 MB, free: 76 kB / 346.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.0007865/0.534, allocations: 0.7505 MB / 482.2 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004465/0.5344, allocations: 310.1 kB / 482.5 MB, free: 14.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.5344, allocations: 4.062 kB / 482.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000205/0.5346, allocations: 177.6 kB / 482.7 MB, free: 14.78 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002262/0.5349, allocations: 32.72 kB / 482.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007449/0.5356, allocations: 323.9 kB / 483.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.5359, allocations: 0.756 MB / 483.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.536, allocations: 22.08 kB / 483.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.5362, allocations: 87.34 kB / 483.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5362, allocations: 0 / 483.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02394/0.5601, allocations: 5.049 MB / 489 MB, free: 8.492 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/0.5603, allocations: 142.8 kB / 489.1 MB, free: 8.297 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.314, allocations: 3.938 kB / 489.1 MB, free: 8.293 MB / 362.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