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.001255/0.001255, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.477/1.477, allocations: 205.4 MB / 223.1 MB, free: 9.035 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.0009143/0.0009142, allocations: 98.59 kB / 271.5 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002286/0.0002287, allocations: 4 kB / 328.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.249, allocations: 47.56 MB / 375.9 MB, free: 45.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09889/0.3479, allocations: 78.34 MB / 454.2 MB, free: 2.203 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.3483, allocations: 71.97 kB / 454.3 MB, free: 2.133 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01653/0.3648, allocations: 5.758 MB / 460.1 MB, free: 12.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.634e-06/0.3649, allocations: 0 / 460.1 MB, free: 12.35 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.3649, allocations: 8 kB / 460.1 MB, free: 12.34 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.001144/0.3661, allocations: 0.6149 MB / 460.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.3661, allocations: 8.031 kB / 460.7 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.416e-05/0.3662, allocations: 58.55 kB / 460.8 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.841e-05/0.3663, allocations: 31.62 kB / 460.8 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003493/0.3666, allocations: 271.4 kB / 461.1 MB, free: 11.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.3667, allocations: 16.56 kB / 461.1 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.747e-05/0.3667, allocations: 24 kB / 461.1 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006658/0.3674, allocations: 311.4 kB / 461.4 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.3674, allocations: 0 / 461.4 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.3674, allocations: 8 kB / 461.4 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3675, allocations: 12 kB / 461.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007825/0.3682, allocations: 273.5 kB / 461.7 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.37, allocations: 1.114 MB / 462.8 MB, free: 9.414 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008282/0.3708, allocations: 242.6 kB / 463 MB, free: 9.168 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.3709, allocations: 15.97 kB / 463.1 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004827/0.3714, allocations: 169.9 kB / 463.2 MB, free: 8.965 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.3714, allocations: 0 / 463.2 MB, free: 8.965 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.001979/0.3734, allocations: 0.542 MB / 463.8 MB, free: 8.395 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.451e-05/0.3735, allocations: 106.8 kB / 463.9 MB, free: 8.266 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.3737, allocations: 257.8 kB / 464.1 MB, free: 8.012 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.3738, allocations: 25.7 kB / 464.1 MB, free: 7.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.3739, allocations: 199.5 kB / 464.3 MB, free: 7.777 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.951e-05/0.374, allocations: 43.39 kB / 464.4 MB, free: 7.734 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.336e-05/0.374, allocations: 4 kB / 464.4 MB, free: 7.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3741, allocations: 334.8 kB / 464.7 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003317/0.3745, allocations: 104.2 kB / 464.8 MB, free: 7.289 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003882/0.3749, allocations: 218.1 kB / 465 MB, free: 7.027 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.3753, allocations: 149.4 kB / 465.2 MB, free: 6.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3753, allocations: 0 / 465.2 MB, free: 6.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001183/0.3765, allocations: 439.7 kB / 465.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.527e-05/0.3765, allocations: 33.7 kB / 465.6 MB, free: 6.395 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.3765, allocations: 12.08 kB / 465.6 MB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003451/0.3769, allocations: 68.81 kB / 465.7 MB, free: 6.312 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.3771, allocations: 67.83 kB / 465.8 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002309/0.3794, allocations: 1.609 MB / 467.4 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003812/0.3798, allocations: 63.72 kB / 467.5 MB, free: 4.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/0.3799, allocations: 12 kB / 467.5 MB, free: 4.43 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 () * 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.0002063/0.3801, allocations: 149.7 kB / 467.6 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.358e-05/0.3801, allocations: 23.72 kB / 467.6 MB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.587e-05/0.3802, allocations: 25.7 kB / 467.7 MB, free: 4.227 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3802, allocations: 3.938 kB / 467.7 MB, free: 4.223 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.3802, allocations: 3.953 kB / 467.7 MB, free: 4.219 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3802, allocations: 7.938 kB / 467.7 MB, free: 4.211 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003341/0.3806, allocations: 305.4 kB / 468 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3806, allocations: 384 / 468 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.3807, allocations: 23.98 kB / 468 MB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002462/0.381, allocations: 72.8 kB / 468.1 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.381, allocations: 4 kB / 468.1 MB, free: 3.762 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002099/0.3831, allocations: 1.593 MB / 469.7 MB, free: 2.035 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3831, allocations: 7.938 kB / 469.7 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000989/0.3841, allocations: 333.5 kB / 470 MB, free: 1.68 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.3843, allocations: 112.8 kB / 470.1 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.876e-05/0.3843, allocations: 11.98 kB / 470.1 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.3846, allocations: 31.97 kB / 470.1 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.028e-05/0.3847, allocations: 19.97 kB / 470.2 MB, free: 1.488 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.3847, allocations: 11.98 kB / 470.2 MB, free: 1.477 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002152/0.3849, allocations: 194 kB / 470.4 MB, free: 1.289 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3849, allocations: 0 / 470.4 MB, free: 1.289 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003993/0.3853, allocations: 83.83 kB / 470.5 MB, free: 1.207 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) * 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.001307/0.3867, allocations: 0.8674 MB / 471.3 MB, free: 316 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.3877, allocations: 438.4 kB / 471.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.3878, allocations: 8.062 kB / 471.8 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004505/0.3882, allocations: 226.6 kB / 472 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/0.3885, allocations: 44.77 kB / 472 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004125/0.3926, allocations: 3.648 MB / 475.7 MB, free: 11.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003565/0.393, allocations: 0.7599 MB / 476.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001392/0.3932, allocations: 26.28 kB / 476.5 MB, free: 11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.3933, allocations: 83.41 kB / 476.5 MB, free: 10.92 MB / 362.7 MB Notification: Performance of SimCode: time 1.182e-06/0.3933, allocations: 0 / 476.5 MB, free: 10.92 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0225/0.4158, allocations: 5.983 MB / 482.5 MB, free: 4.965 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002439/0.4161, allocations: 215.5 kB / 482.7 MB, free: 4.715 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.864/2.28, allocations: 0 / 482.7 MB, free: 4.715 MB / 362.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