Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.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.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_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.001057/0.001057, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009485/0.0009485, allocations: 90.66 kB / 268 MB, free: 14.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.341e-05/2.343e-05, allocations: 4 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08452/0.08456, allocations: 47.57 MB / 370.1 MB, free: 1.598 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2662/0.3508, allocations: 79.04 MB / 449.2 MB, free: 14.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001665/0.351, allocations: 77.77 kB / 449.2 MB, free: 14.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0159/0.367, allocations: 5.673 MB / 454.9 MB, free: 9.359 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.367, allocations: 0 / 454.9 MB, free: 9.359 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.825e-05/0.367, allocations: 4 kB / 454.9 MB, free: 9.355 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001036/0.3681, allocations: 0.5771 MB / 455.5 MB, free: 8.746 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.3681, allocations: 15.97 kB / 455.5 MB, free: 8.73 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.1e-05/0.3682, allocations: 55.73 kB / 455.6 MB, free: 8.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.789e-05/0.3683, allocations: 27.72 kB / 455.6 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.3686, allocations: 266.3 kB / 455.9 MB, free: 8.379 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.3686, allocations: 20.2 kB / 455.9 MB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.357e-05/0.3687, allocations: 18.69 kB / 455.9 MB, free: 8.352 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003434/0.369, allocations: 203.9 kB / 456.1 MB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.3691, allocations: 0 / 456.1 MB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.3691, allocations: 5.75 kB / 456.1 MB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.3691, allocations: 8 kB / 456.1 MB, free: 8.195 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002746/0.3694, allocations: 167.2 kB / 456.3 MB, free: 8.094 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/0.3709, allocations: 0.9275 MB / 457.2 MB, free: 7.246 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003538/0.3713, allocations: 153.6 kB / 457.3 MB, free: 7.133 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.768e-05/0.3714, allocations: 58.8 kB / 457.4 MB, free: 7.094 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.3714, allocations: 0 / 457.4 MB, free: 7.094 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002261/0.3716, allocations: 139.3 kB / 457.5 MB, free: 6.961 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.3716, allocations: 0 / 457.5 MB, free: 6.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.000517/0.3722, allocations: 221.7 kB / 457.8 MB, free: 6.773 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.209e-05/0.3722, allocations: 110.8 kB / 457.9 MB, free: 6.641 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.3725, allocations: 230.5 kB / 458.1 MB, free: 6.449 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.3725, allocations: 36.56 kB / 458.1 MB, free: 6.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.255e-05/0.3726, allocations: 167.4 kB / 458.3 MB, free: 6.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.488e-05/0.3727, allocations: 43.45 kB / 458.3 MB, free: 6.234 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.251e-05/0.3727, allocations: 7.75 kB / 458.3 MB, free: 6.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3728, allocations: 334.1 kB / 458.7 MB, free: 5.902 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.574e-05/0.3729, allocations: 53.88 kB / 458.7 MB, free: 5.871 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.373, allocations: 112.4 kB / 458.8 MB, free: 5.758 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001263/0.3732, allocations: 93.39 kB / 458.9 MB, free: 5.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3732, allocations: 0 / 458.9 MB, free: 5.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005448/0.3737, allocations: 320.9 kB / 459.2 MB, free: 5.375 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002293/0.374, allocations: 0.6373 MB / 459.9 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.374, allocations: 4 kB / 459.9 MB, free: 4.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002074/0.3742, allocations: 44.84 kB / 459.9 MB, free: 4.633 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001982/0.3744, allocations: 47.91 kB / 460 MB, free: 4.586 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003865/0.3748, allocations: 0.5797 MB / 460.5 MB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.3751, allocations: 55.83 kB / 460.6 MB, free: 3.926 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.504e-05/0.3752, allocations: 8 kB / 460.6 MB, free: 3.918 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.404e-06/0.3752, allocations: 4 kB / 460.6 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003751/0.3755, allocations: 234.4 kB / 460.8 MB, free: 3.676 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3756, allocations: 4 kB / 460.8 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.668e-05/0.3757, allocations: 36.84 kB / 460.9 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.3759, allocations: 51.84 kB / 460.9 MB, free: 3.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00112/0.377, allocations: 1.53 MB / 462.5 MB, free: 1.914 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002549/0.3772, allocations: 47.91 kB / 462.5 MB, free: 1.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.3773, allocations: 8 kB / 462.5 MB, free: 1.859 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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.938e-05/0.3774, allocations: 125.8 kB / 462.6 MB, free: 1.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.297e-05/0.3774, allocations: 27.75 kB / 462.7 MB, free: 1.703 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.084e-05/0.3775, allocations: 25.95 kB / 462.7 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3775, allocations: 0 / 462.7 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3775, allocations: 0 / 462.7 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3775, allocations: 7.938 kB / 462.7 MB, free: 1.668 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002484/0.3778, allocations: 297.4 kB / 463 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3778, allocations: 0 / 463 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.3779, allocations: 23.98 kB / 463 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001245/0.3781, allocations: 48.83 kB / 463.1 MB, free: 1.254 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.3781, allocations: 3.953 kB / 463.1 MB, free: 1.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001241/0.3793, allocations: 1.527 MB / 464.6 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3793, allocations: 4.031 kB / 464.6 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004239/0.3798, allocations: 245.7 kB / 464.8 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.929e-05/0.3798, allocations: 96.81 kB / 464.9 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.367e-05/0.3799, allocations: 8 kB / 464.9 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.3801, allocations: 35.97 kB / 465 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.119e-05/0.3802, allocations: 27.89 kB / 465 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.3802, allocations: 8 kB / 465 MB, free: 15.13 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001538/0.3804, allocations: 181.4 kB / 465.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3804, allocations: 0 / 465.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004205/0.3808, allocations: 119.7 kB / 465.3 MB, free: 14.84 MB / 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 (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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006915/0.3815, allocations: 0.7925 MB / 466.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006457/0.3822, allocations: 477 kB / 466.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3822, allocations: 0 / 466.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002313/0.3824, allocations: 195.2 kB / 466.7 MB, free: 13.31 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002438/0.3827, allocations: 52.45 kB / 466.8 MB, free: 13.26 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006542/0.3833, allocations: 325.7 kB / 467.1 MB, free: 12.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.3836, allocations: 0.757 MB / 467.9 MB, free: 12.12 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001541/0.3838, allocations: 30.05 kB / 467.9 MB, free: 12.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.3839, allocations: 71.42 kB / 468 MB, free: 12.02 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3839, allocations: 0 / 468 MB, free: 12.02 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01679/0.4007, allocations: 5.953 MB / 473.9 MB, free: 6.066 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.4009, allocations: 200.3 kB / 474.1 MB, free: 5.832 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/2.1, allocations: 4.062 kB / 474.1 MB, free: 5.828 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat does not exist to compare? outputFormat=mat