Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.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.OpAmps.VoltageFollower,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",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.0009578/0.0009579, allocations: 174.9 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.4 MB / 235.5 MB, free: 2.926 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.0008285/0.0008281, allocations: 87.73 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.543e-05/2.552e-05, allocations: 4 kB / 343.9 MB, free: 4.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08799/0.08803, allocations: 50.41 MB / 394.4 MB, free: 1.73 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2936/0.3817, allocations: 80.64 MB / 475 MB, free: 6.805 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.3819, allocations: 79.95 kB / 475.1 MB, free: 6.727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01644/0.3984, allocations: 5.785 MB / 480.9 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3984, allocations: 0 / 480.9 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.864e-05/0.3985, allocations: 12 kB / 480.9 MB, free: 0.9141 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.001054/0.3995, allocations: 0.5601 MB / 481.4 MB, free: 312 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.3996, allocations: 8.031 kB / 481.4 MB, free: 304 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.84e-05/0.3996, allocations: 58.53 kB / 481.5 MB, free: 236 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.869e-05/0.3997, allocations: 27.72 kB / 481.5 MB, free: 208 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.4001, allocations: 259 kB / 481.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.4001, allocations: 24.38 kB / 481.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.414e-05/0.4002, allocations: 16 kB / 481.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003864/0.4006, allocations: 230.2 kB / 482 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.4006, allocations: 3.953 kB / 482 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.4006, allocations: 12 kB / 482.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.4006, allocations: 4 kB / 482.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002783/0.4009, allocations: 149.7 kB / 482.2 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.4026, allocations: 0.9914 MB / 483.2 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.4036, allocations: 359.6 kB / 483.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.727e-05/0.4037, allocations: 48.84 kB / 483.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.4037, allocations: 4 kB / 483.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002341/0.404, allocations: 122.1 kB / 483.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.404, allocations: 0 / 483.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005699/0.4046, allocations: 198.1 kB / 483.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.4046, allocations: 106.8 kB / 484 MB, free: 13.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.4049, allocations: 243.1 kB / 484.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.4049, allocations: 33.7 kB / 484.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.4051, allocations: 183.6 kB / 484.5 MB, free: 13.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/0.4051, allocations: 35.64 kB / 484.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.778e-06/0.4051, allocations: 0 / 484.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.4053, allocations: 334.8 kB / 484.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.4054, allocations: 52 kB / 484.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.4056, allocations: 157.8 kB / 485 MB, free: 12.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.4057, allocations: 93.64 kB / 485.1 MB, free: 12.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4057, allocations: 0 / 485.1 MB, free: 12.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006459/0.4064, allocations: 332 kB / 485.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/0.4064, allocations: 37.7 kB / 485.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.4064, allocations: 3.938 kB / 485.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001373/0.4066, allocations: 32.97 kB / 485.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.4068, allocations: 67.88 kB / 485.6 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.4082, allocations: 1.347 MB / 486.9 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003329/0.4085, allocations: 63.8 kB / 487 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.4086, allocations: 19.94 kB / 487 MB, free: 10.26 MB / 362.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 (24): * Single equations (assignments): 22 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 8.68e-05/0.4086, allocations: 113.6 kB / 487.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.4087, allocations: 23.77 kB / 487.1 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.284e-05/0.4087, allocations: 29.83 kB / 487.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.4087, allocations: 0 / 487.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.4088, allocations: 4 kB / 487.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4088, allocations: 0 / 487.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007623/0.4095, allocations: 0.5537 MB / 487.7 MB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4095, allocations: 0 / 487.7 MB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.4097, allocations: 35.97 kB / 487.8 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-05/0.4098, allocations: 20.86 kB / 487.8 MB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.4098, allocations: 7.984 kB / 487.8 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.4109, allocations: 1.339 MB / 489.1 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4109, allocations: 4.031 kB / 489.1 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000494/0.4114, allocations: 296.1 kB / 489.4 MB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.854e-05/0.4115, allocations: 96.83 kB / 489.5 MB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/0.4116, allocations: 8 kB / 489.5 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002739/0.4118, allocations: 36.14 kB / 489.6 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.326e-05/0.4119, allocations: 27.86 kB / 489.6 MB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.4119, allocations: 7.938 kB / 489.6 MB, free: 7.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001775/0.4121, allocations: 195.1 kB / 489.8 MB, free: 7.238 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4121, allocations: 0 / 489.8 MB, free: 7.238 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003169/0.4125, allocations: 63.84 kB / 489.9 MB, free: 7.176 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) * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008146/0.4133, allocations: 0.8262 MB / 490.7 MB, free: 6.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000435/0.4137, allocations: 306.5 kB / 491 MB, free: 5.996 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.4137, allocations: 0 / 491 MB, free: 5.996 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.4139, allocations: 158.6 kB / 491.1 MB, free: 5.828 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.4142, allocations: 40.5 kB / 491.2 MB, free: 5.789 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007404/0.415, allocations: 320.9 kB / 491.5 MB, free: 5.434 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.4153, allocations: 0.7443 MB / 492.2 MB, free: 4.664 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.4154, allocations: 26.06 kB / 492.3 MB, free: 4.641 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.4155, allocations: 79.69 kB / 492.3 MB, free: 4.562 MB / 362.7 MB Notification: Performance of SimCode: time 3.6e-07/0.4156, allocations: 0 / 492.3 MB, free: 4.562 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01873/0.4343, allocations: 5.268 MB / 497.6 MB, free: 15.47 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002164/0.4346, allocations: 188.5 kB / 497.8 MB, free: 15.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/2.123, allocations: 3.938 kB / 497.8 MB, free: 15.24 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower_res.mat does not exist to compare? outputFormat=mat