Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",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.001359/0.001359, allocations: 174.9 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.0008878/0.0008878, allocations: 88.23 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.014e-05/2.016e-05, allocations: 8 kB / 337.2 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1039, allocations: 50.43 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3689/0.4729, allocations: 82.09 MB / 469.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/0.4732, allocations: 79.95 kB / 469.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03738/0.5106, allocations: 9.728 MB / 479.5 MB, free: 2.758 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5107, allocations: 3.938 kB / 479.5 MB, free: 2.754 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.321e-05/0.5107, allocations: 12 kB / 479.5 MB, free: 2.742 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001875/0.5126, allocations: 0.7851 MB / 480.3 MB, free: 1.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/0.5127, allocations: 12.03 kB / 480.3 MB, free: 1.898 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002005/0.5129, allocations: 71.16 kB / 480.4 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008549/0.5138, allocations: 396.6 kB / 480.7 MB, free: 1.398 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/0.5138, allocations: 20.69 kB / 480.8 MB, free: 1.379 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.5139, allocations: 28 kB / 480.8 MB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000993/0.515, allocations: 334.5 kB / 481.1 MB, free: 1.023 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.5162, allocations: 448.2 kB / 481.6 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.49e-05/0.5162, allocations: 3.938 kB / 481.6 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.63e-05/0.5163, allocations: 8 kB / 481.6 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.5163, allocations: 12 kB / 481.6 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004575/0.5209, allocations: 1.748 MB / 483.3 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.5219, allocations: 486.5 kB / 483.8 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.523, allocations: 321.3 kB / 484.1 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.057e-05/0.5231, allocations: 4.328 kB / 484.1 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006059/0.5237, allocations: 262.2 kB / 484.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 3.587e-06/0.5237, allocations: 0 / 484.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.00212/0.5258, allocations: 0.5476 MB / 484.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002177/0.5261, allocations: 239.3 kB / 485.2 MB, free: 12.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006847/0.5268, allocations: 333.2 kB / 485.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.457e-05/0.5269, allocations: 29.7 kB / 485.5 MB, free: 12.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000362/0.5272, allocations: 311.9 kB / 485.8 MB, free: 12.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.5274, allocations: 130 kB / 485.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.94e-05/0.5275, allocations: 0 / 485.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000236/0.5277, allocations: 362.7 kB / 486.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003396/0.5281, allocations: 109.1 kB / 486.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005541/0.5286, allocations: 280.5 kB / 486.7 MB, free: 11.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.529, allocations: 157.5 kB / 486.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.5291, allocations: 0 / 486.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002398/0.5315, allocations: 0.6626 MB / 487.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/0.5315, allocations: 8 kB / 487.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.5315, allocations: 4 kB / 487.5 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007791/0.5323, allocations: 156.7 kB / 487.7 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005608/0.5329, allocations: 87.89 kB / 487.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00467/0.5376, allocations: 2.301 MB / 490.1 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009055/0.5385, allocations: 71.56 kB / 490.1 MB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.364e-05/0.5386, allocations: 20 kB / 490.1 MB, free: 7.535 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real resistorGround.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002973/0.5389, allocations: 124.9 kB / 490.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001493/0.5404, allocations: 0.5556 MB / 490.8 MB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.576e-05/0.5405, allocations: 47.53 kB / 490.9 MB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001363/0.5406, allocations: 44.8 kB / 490.9 MB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.5407, allocations: 4 kB / 490.9 MB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.5407, allocations: 0 / 490.9 MB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.5407, allocations: 0 / 490.9 MB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001981/0.5427, allocations: 1.105 MB / 492 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.5427, allocations: 0 / 492 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002219/0.5429, allocations: 51.91 kB / 492.1 MB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004162/0.5433, allocations: 158.5 kB / 492.2 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.5434, allocations: 3.984 kB / 492.2 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00285/0.5462, allocations: 2.286 MB / 494.5 MB, free: 2.973 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.5462, allocations: 0 / 494.5 MB, free: 2.973 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.5478, allocations: 0.8162 MB / 495.3 MB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.5479, allocations: 128.4 kB / 495.5 MB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.745e-05/0.548, allocations: 7.938 kB / 495.5 MB, free: 1.984 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003627/0.5484, allocations: 40.03 kB / 495.5 MB, free: 1.945 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.177e-05/0.5485, allocations: 31.95 kB / 495.5 MB, free: 1.914 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.5485, allocations: 12 kB / 495.5 MB, free: 1.902 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002931/0.5488, allocations: 255 kB / 495.8 MB, free: 1.656 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5488, allocations: 0 / 495.8 MB, free: 1.656 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007212/0.5495, allocations: 167.5 kB / 496 MB, free: 1.492 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {3 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002014/0.5516, allocations: 1.364 MB / 497.3 MB, free: 100 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000963/0.5525, allocations: 0.4936 MB / 497.8 MB, free: 15.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.5525, allocations: 4 kB / 497.8 MB, free: 15.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004931/0.553, allocations: 342.1 kB / 498.2 MB, free: 15.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.5535, allocations: 55.42 kB / 498.2 MB, free: 15.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.5552, allocations: 0.6707 MB / 498.9 MB, free: 14.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.5556, allocations: 0.8751 MB / 499.8 MB, free: 13.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002092/0.5559, allocations: 47.62 kB / 499.8 MB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/0.5561, allocations: 195.3 kB / 500 MB, free: 13.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5561, allocations: 0 / 500 MB, free: 13.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03181/0.5879, allocations: 9.647 MB / 0.4977 GB, free: 3.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/0.5881, allocations: 156.7 kB / 0.4978 GB, free: 3.578 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.069/2.657, allocations: 0 / 0.4978 GB, free: 3.578 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat does not exist to compare? outputFormat=mat