Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001027/0.001027, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.606/1.606, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008862/0.0008863, allocations: 87.53 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.399e-05/2.431e-05, allocations: 4 kB / 343.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1213, allocations: 51.48 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3749/0.4963, allocations: 82.92 MB / 478.2 MB, free: 9.766 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.4966, allocations: 82.33 kB / 478.3 MB, free: 9.734 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02373/0.5203, allocations: 9.83 MB / 488.1 MB, free: 1.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.5203, allocations: 0 / 488.1 MB, free: 1.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.549e-05/0.5204, allocations: 15.98 kB / 488.1 MB, free: 1.824 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.001465/0.5219, allocations: 0.7864 MB / 488.9 MB, free: 1.031 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.5219, allocations: 8.031 kB / 488.9 MB, free: 1.023 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004508/0.5224, allocations: 96.86 kB / 489 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006457/0.523, allocations: 406.9 kB / 489.4 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/0.5231, allocations: 16 kB / 489.4 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.522e-05/0.5232, allocations: 35.94 kB / 489.5 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007339/0.5239, allocations: 331.8 kB / 489.8 MB, free: 304 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007033/0.5246, allocations: 436.7 kB / 490.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.5247, allocations: 6.703 kB / 490.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.728e-05/0.5247, allocations: 0 / 490.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.5247, allocations: 15.94 kB / 490.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0034/0.5281, allocations: 1.753 MB / 492 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00066/0.5288, allocations: 496.2 kB / 492.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006488/0.5295, allocations: 320.8 kB / 492.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.5296, allocations: 4.328 kB / 492.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004044/0.53, allocations: 247.1 kB / 493 MB, free: 13.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 5.851e-06/0.53, allocations: 3.984 kB / 493 MB, free: 13.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.001422/0.5314, allocations: 0.5515 MB / 493.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001951/0.5316, allocations: 239.3 kB / 493.8 MB, free: 12.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004984/0.5321, allocations: 340.7 kB / 494.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.552e-05/0.5322, allocations: 29.7 kB / 494.2 MB, free: 12.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.5325, allocations: 317.6 kB / 494.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.5326, allocations: 132.1 kB / 494.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.961e-05/0.5326, allocations: 0 / 494.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.5328, allocations: 360.3 kB / 495 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.533, allocations: 109.6 kB / 495.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003246/0.5333, allocations: 278.5 kB / 495.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002555/0.5336, allocations: 149.2 kB / 495.5 MB, free: 11.44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.5336, allocations: 0 / 495.5 MB, free: 11.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001509/0.5351, allocations: 0.6624 MB / 496.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.5352, allocations: 7.984 kB / 496.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.5352, allocations: 8.031 kB / 496.2 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005392/0.5357, allocations: 160.2 kB / 496.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003533/0.5361, allocations: 87.52 kB / 496.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003129/0.5392, allocations: 2.299 MB / 498.7 MB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005537/0.5398, allocations: 67.56 kB / 498.8 MB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.276e-05/0.5399, allocations: 19.31 kB / 498.8 MB, free: 8.566 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.0002391/0.5401, allocations: 131.5 kB / 498.9 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001272/0.5414, allocations: 0.5394 MB / 499.5 MB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.5415, allocations: 47.44 kB / 499.5 MB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.5416, allocations: 57.73 kB / 499.6 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.5416, allocations: 4 kB / 499.6 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.5417, allocations: 3.953 kB / 499.6 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.5417, allocations: 3.984 kB / 499.6 MB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.5437, allocations: 1.1 MB / 0.4889 GB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.5438, allocations: 4 kB / 0.4889 GB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002253/0.544, allocations: 47.91 kB / 0.489 GB, free: 6.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004359/0.5444, allocations: 157.4 kB / 0.4891 GB, free: 6.801 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.5445, allocations: 3.984 kB / 0.4891 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002879/0.5474, allocations: 2.286 MB / 0.4914 GB, free: 4.797 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/0.5474, allocations: 5.125 kB / 0.4914 GB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.549, allocations: 0.8028 MB / 0.4922 GB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.5491, allocations: 130.8 kB / 0.4923 GB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.375e-05/0.5492, allocations: 0 / 0.4923 GB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003768/0.5496, allocations: 39.97 kB / 0.4923 GB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.083e-05/0.5497, allocations: 35.28 kB / 0.4924 GB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.5497, allocations: 11.44 kB / 0.4924 GB, free: 3.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003176/0.5501, allocations: 267.6 kB / 0.4926 GB, free: 3.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5501, allocations: 0 / 0.4926 GB, free: 3.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007856/0.5509, allocations: 174.8 kB / 0.4928 GB, free: 3.562 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.00192/0.5528, allocations: 1.359 MB / 0.4941 GB, free: 2.355 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009798/0.5538, allocations: 0.4935 MB / 0.4946 GB, free: 1.969 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5538, allocations: 0 / 0.4946 GB, free: 1.969 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005197/0.5543, allocations: 337 kB / 0.4949 GB, free: 1.699 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004479/0.5548, allocations: 67.89 kB / 0.495 GB, free: 1.652 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.5565, allocations: 0.6947 MB / 0.4957 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005257/0.5571, allocations: 0.8751 MB / 0.4965 GB, free: 92 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002295/0.5573, allocations: 48.34 kB / 0.4966 GB, free: 40 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002295/0.5575, allocations: 187.7 kB / 0.4968 GB, free: 15.99 MB / 378.7 MB Notification: Performance of SimCode: time 7.61e-07/0.5575, allocations: 0 / 0.4968 GB, free: 15.99 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03708/0.5946, allocations: 9.755 MB / 0.5063 GB, free: 6.367 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002586/0.5949, allocations: 155.2 kB / 0.5064 GB, free: 6.176 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.145/2.74, allocations: 4.031 kB / 0.5064 GB, free: 6.172 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat does not exist to compare? outputFormat=mat