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.001076/0.001076, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.479/1.479, allocations: 205.4 MB / 223.1 MB, free: 9.047 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.0008644/0.0008645, allocations: 96.14 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003276/0.0003278, allocations: 8 kB / 328.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.26, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09744/0.3575, allocations: 79.12 MB / 455.1 MB, free: 1.512 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/0.3578, allocations: 83.95 kB / 455.1 MB, free: 1.43 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01579/0.3736, allocations: 5.684 MB / 460.8 MB, free: 11.72 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3736, allocations: 0 / 460.8 MB, free: 11.72 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.016e-05/0.3737, allocations: 4 kB / 460.8 MB, free: 11.72 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001116/0.3748, allocations: 0.6106 MB / 461.4 MB, free: 11.05 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.3748, allocations: 12.03 kB / 461.4 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.244e-05/0.3749, allocations: 50.55 kB / 461.5 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.129e-05/0.375, allocations: 31.62 kB / 461.5 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.3754, allocations: 279.2 kB / 461.8 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.3755, allocations: 16.39 kB / 461.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.487e-05/0.3755, allocations: 20 kB / 461.8 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006158/0.3761, allocations: 255.2 kB / 462.1 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.3762, allocations: 4 kB / 462.1 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.666e-05/0.3762, allocations: 12 kB / 462.1 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.3762, allocations: 4 kB / 462.1 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00076/0.377, allocations: 285.5 kB / 462.4 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.3786, allocations: 0.9402 MB / 463.3 MB, free: 9.035 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007516/0.3793, allocations: 270.5 kB / 463.6 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.3794, allocations: 4 kB / 463.6 MB, free: 8.758 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004547/0.3798, allocations: 185.8 kB / 463.8 MB, free: 8.555 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.562e-06/0.3798, allocations: 3.938 kB / 463.8 MB, free: 8.551 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.00176/0.3816, allocations: 0.6548 MB / 464.4 MB, free: 7.871 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.231e-05/0.3817, allocations: 110.8 kB / 464.5 MB, free: 7.738 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.382, allocations: 228.1 kB / 464.8 MB, free: 7.512 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.382, allocations: 29.7 kB / 464.8 MB, free: 7.477 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.3821, allocations: 171.9 kB / 465 MB, free: 7.305 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.411e-05/0.3822, allocations: 51.34 kB / 465 MB, free: 7.254 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.167e-05/0.3822, allocations: 4 kB / 465 MB, free: 7.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.3823, allocations: 334.8 kB / 465.3 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003103/0.3826, allocations: 111.9 kB / 465.4 MB, free: 6.805 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003252/0.383, allocations: 170.1 kB / 465.6 MB, free: 6.613 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003272/0.3833, allocations: 137.6 kB / 465.7 MB, free: 6.473 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3833, allocations: 0 / 465.7 MB, free: 6.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0009875/0.3843, allocations: 436.7 kB / 466.2 MB, free: 6.031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003071/0.3846, allocations: 0.6426 MB / 466.8 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/0.3847, allocations: 4 kB / 466.8 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003128/0.385, allocations: 72.81 kB / 466.9 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.3852, allocations: 47.84 kB / 466.9 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005615/0.3858, allocations: 0.6187 MB / 467.6 MB, free: 4.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003038/0.3861, allocations: 59.86 kB / 467.6 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.3861, allocations: 15.97 kB / 467.6 MB, free: 4.492 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.3861, allocations: 4 kB / 467.6 MB, free: 4.488 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007276/0.3869, allocations: 322.2 kB / 467.9 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3869, allocations: 3.938 kB / 468 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001047/0.387, allocations: 40.91 kB / 468 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/0.3872, allocations: 39.97 kB / 468 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.3886, allocations: 1.553 MB / 469.6 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.3888, allocations: 47.88 kB / 469.6 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.3889, allocations: 8 kB / 469.6 MB, free: 2.34 MB / 346.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 () * Number of clocked 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 0.0001832/0.3891, allocations: 212.9 kB / 469.8 MB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.409e-05/0.3891, allocations: 27.67 kB / 469.9 MB, free: 2.094 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.98e-05/0.3892, allocations: 21.83 kB / 469.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.3892, allocations: 4 kB / 469.9 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.3892, allocations: 4 kB / 469.9 MB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.3892, allocations: 0 / 469.9 MB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00028/0.3895, allocations: 293.5 kB / 470.2 MB, free: 1.727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.3895, allocations: 4 kB / 470.2 MB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.3897, allocations: 28.3 kB / 470.2 MB, free: 1.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002197/0.3899, allocations: 80.8 kB / 470.3 MB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.3899, allocations: 3.953 kB / 470.3 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001755/0.3917, allocations: 1.665 MB / 472 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.3917, allocations: 8.094 kB / 472 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000841/0.3925, allocations: 369.4 kB / 472.3 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.585e-05/0.3926, allocations: 88.92 kB / 472.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/0.3927, allocations: 11.98 kB / 472.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.3929, allocations: 35.97 kB / 472.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.692e-05/0.393, allocations: 23.97 kB / 472.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.393, allocations: 4 kB / 472.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001697/0.3932, allocations: 184.5 kB / 472.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3932, allocations: 0 / 472.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004848/0.3937, allocations: 119.7 kB / 472.8 MB, free: 14.95 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) * Number of clocked states: 0 () * 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.001155/0.3948, allocations: 0.9172 MB / 473.7 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.3961, allocations: 0.6203 MB / 474.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3961, allocations: 0 / 474.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004327/0.3966, allocations: 258.9 kB / 474.6 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.3969, allocations: 46 kB / 474.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.4002, allocations: 2.512 MB / 477.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.4006, allocations: 0.7598 MB / 477.9 MB, free: 9.648 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001424/0.4007, allocations: 26.28 kB / 477.9 MB, free: 9.625 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.4008, allocations: 71.42 kB / 478 MB, free: 9.555 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4008, allocations: 0 / 478 MB, free: 9.555 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0201/0.4209, allocations: 5.795 MB / 483.8 MB, free: 3.785 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002213/0.4212, allocations: 210.8 kB / 484 MB, free: 3.551 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.808/2.229, allocations: 3.938 kB / 484 MB, free: 3.547 MB / 362.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