Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001428/0.001428, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008235/0.0008234, allocations: 94.22 kB / 262.5 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.195e-05/2.198e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09215/0.09219, allocations: 47.6 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3524/0.4446, allocations: 77.82 MB / 441 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.4449, allocations: 69.91 kB / 441.1 MB, free: 1.516 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01614/0.461, allocations: 5.697 MB / 446.8 MB, free: 12.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.4611, allocations: 0 / 446.8 MB, free: 12.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.4611, allocations: 8 kB / 446.8 MB, free: 12.71 MB / 330.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.0009674/0.4621, allocations: 0.5741 MB / 447.3 MB, free: 12.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.4621, allocations: 8.031 kB / 447.4 MB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.054e-05/0.4622, allocations: 31.62 kB / 447.4 MB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.4626, allocations: 270.1 kB / 447.7 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.4626, allocations: 8 kB / 447.7 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.924e-05/0.4626, allocations: 16 kB / 447.7 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003075/0.463, allocations: 157.9 kB / 447.8 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/0.4634, allocations: 227.4 kB / 448.1 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.4634, allocations: 0 / 448.1 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/0.4634, allocations: 0 / 448.1 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.4634, allocations: 8 kB / 448.1 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.465, allocations: 1.058 MB / 449.1 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003238/0.4654, allocations: 128.6 kB / 449.2 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.299e-05/0.4655, allocations: 49.05 kB / 449.3 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.4655, allocations: 8.219 kB / 449.3 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002213/0.4657, allocations: 129.8 kB / 449.4 MB, free: 10.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.4657, allocations: 0 / 449.4 MB, free: 10.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005866/0.4663, allocations: 191 kB / 449.6 MB, free: 10.08 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.4664, allocations: 110.2 kB / 449.7 MB, free: 9.949 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.4666, allocations: 214.8 kB / 449.9 MB, free: 9.773 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.4666, allocations: 25.7 kB / 450 MB, free: 9.742 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.4668, allocations: 205.5 kB / 450.2 MB, free: 9.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.347e-05/0.4668, allocations: 50.83 kB / 450.2 MB, free: 9.523 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.4668, allocations: 0 / 450.2 MB, free: 9.523 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.467, allocations: 333.5 kB / 450.5 MB, free: 9.199 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.872e-05/0.4671, allocations: 52.23 kB / 450.6 MB, free: 9.164 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.4672, allocations: 156.5 kB / 450.7 MB, free: 8.992 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.4674, allocations: 58.7 kB / 450.8 MB, free: 8.953 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.4674, allocations: 4 kB / 450.8 MB, free: 8.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006152/0.468, allocations: 295.6 kB / 451.1 MB, free: 8.703 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.468, allocations: 29.7 kB / 451.1 MB, free: 8.668 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.4681, allocations: 4 kB / 451.1 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002048/0.4683, allocations: 54.39 kB / 451.2 MB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000208/0.4685, allocations: 56 kB / 451.2 MB, free: 8.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.4699, allocations: 1.447 MB / 452.7 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003232/0.4702, allocations: 51.75 kB / 452.7 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.865e-05/0.4703, allocations: 23.81 kB / 452.7 MB, free: 7.047 MB / 330.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 9.821e-05/0.4704, allocations: 113 kB / 452.9 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004735/0.4709, allocations: 196.4 kB / 453 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.059e-05/0.4709, allocations: 19.72 kB / 453.1 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.776e-05/0.4709, allocations: 28.14 kB / 453.1 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.471, allocations: 0 / 453.1 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.471, allocations: 3.938 kB / 453.1 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.471, allocations: 0 / 453.1 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002598/0.4712, allocations: 259.2 kB / 453.4 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.4713, allocations: 3.953 kB / 453.4 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/0.4714, allocations: 23.98 kB / 453.4 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001272/0.4715, allocations: 54.2 kB / 453.4 MB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.4715, allocations: 0 / 453.4 MB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/0.4728, allocations: 1.447 MB / 454.9 MB, free: 4.961 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.4728, allocations: 3.938 kB / 454.9 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004681/0.4733, allocations: 228 kB / 455.1 MB, free: 4.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.236e-05/0.4734, allocations: 108.1 kB / 455.2 MB, free: 4.633 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.4734, allocations: 0 / 455.2 MB, free: 4.633 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.4737, allocations: 35.97 kB / 455.2 MB, free: 4.598 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.27e-05/0.4737, allocations: 26.83 kB / 455.3 MB, free: 4.578 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.4738, allocations: 0 / 455.3 MB, free: 4.578 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001329/0.4739, allocations: 175.4 kB / 455.4 MB, free: 4.438 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4739, allocations: 0 / 455.4 MB, free: 4.438 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003329/0.4742, allocations: 75.75 kB / 455.5 MB, free: 4.363 MB / 330.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.0007423/0.475, allocations: 0.7491 MB / 456.3 MB, free: 3.617 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005019/0.4755, allocations: 329.3 kB / 456.6 MB, free: 3.324 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4755, allocations: 0 / 456.6 MB, free: 3.324 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.4757, allocations: 171.1 kB / 456.8 MB, free: 3.172 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000236/0.476, allocations: 28.8 kB / 456.8 MB, free: 3.152 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007784/0.4768, allocations: 329.4 kB / 457.1 MB, free: 2.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000284/0.4771, allocations: 0.756 MB / 457.9 MB, free: 2.035 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.4772, allocations: 26.06 kB / 457.9 MB, free: 2.012 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.4773, allocations: 80.97 kB / 458 MB, free: 1.98 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4773, allocations: 0 / 458 MB, free: 1.98 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.5034, allocations: 5.064 MB / 463 MB, free: 12.92 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002005/0.5037, allocations: 142.2 kB / 463.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.744/2.248, allocations: 3.938 kB / 463.2 MB, free: 12.72 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat