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.001039/0.001039, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.185/1.185, allocations: 227.2 MB / 245 MB, free: 7.648 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008894/0.0008894, allocations: 104.9 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002447, allocations: 12 kB / 358 MB, free: 9.422 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1798, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08739/0.2672, allocations: 83.66 MB / 493.2 MB, free: 6.934 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.2675, allocations: 83.95 kB / 493.3 MB, free: 6.852 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02494/0.2924, allocations: 9.954 MB / 0.4914 GB, free: 12.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2925, allocations: 0 / 0.4914 GB, free: 12.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.742e-05/0.2925, allocations: 12 kB / 0.4914 GB, free: 12.85 MB / 378.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.001365/0.2939, allocations: 0.8586 MB / 0.4923 GB, free: 11.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.2939, allocations: 16.02 kB / 0.4923 GB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.294, allocations: 94.52 kB / 0.4924 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002752/0.2943, allocations: 95.83 kB / 0.4925 GB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005177/0.2948, allocations: 402.1 kB / 0.4928 GB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/0.2949, allocations: 49.31 kB / 0.4929 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.948e-05/0.295, allocations: 48 kB / 0.4929 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009317/0.2959, allocations: 0.5456 MB / 0.4935 GB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.2959, allocations: 4 kB / 0.4935 GB, free: 10.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.615e-05/0.296, allocations: 24 kB / 0.4935 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.296, allocations: 16 kB / 0.4935 GB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000849/0.2969, allocations: 425 kB / 0.4939 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002776/0.2997, allocations: 1.863 MB / 0.4957 GB, free: 8.223 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007815/0.3005, allocations: 0.5449 MB / 0.4963 GB, free: 7.633 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.3005, allocations: 4.328 kB / 0.4963 GB, free: 7.629 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004751/0.301, allocations: 299.1 kB / 0.4966 GB, free: 7.301 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 1.874e-06/0.301, allocations: 3.938 kB / 0.4966 GB, free: 7.297 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.003006/0.304, allocations: 1.146 MB / 0.4977 GB, free: 6.121 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.073e-05/0.3041, allocations: 247.3 kB / 0.4979 GB, free: 5.824 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000373/0.3045, allocations: 377 kB / 0.4983 GB, free: 5.445 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.3045, allocations: 41.64 kB / 0.4983 GB, free: 5.398 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.3047, allocations: 304.1 kB / 0.4986 GB, free: 5.098 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.189e-05/0.3048, allocations: 145.9 kB / 0.4987 GB, free: 4.953 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.797e-05/0.3048, allocations: 8 kB / 0.4988 GB, free: 4.945 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3049, allocations: 362.7 kB / 0.4991 GB, free: 4.582 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003062/0.3052, allocations: 157 kB / 0.4992 GB, free: 4.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003906/0.3056, allocations: 309.7 kB / 0.4995 GB, free: 4.051 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003484/0.306, allocations: 192.6 kB / 0.4997 GB, free: 3.867 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.306, allocations: 4 kB / 0.4997 GB, free: 3.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001498/0.3075, allocations: 0.7523 MB / 0.5005 GB, free: 3.102 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.3075, allocations: 8 kB / 0.5005 GB, free: 3.094 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.3075, allocations: 4 kB / 0.5005 GB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004923/0.308, allocations: 154.5 kB / 0.5006 GB, free: 2.938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003146/0.3083, allocations: 83.89 kB / 0.5007 GB, free: 2.855 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003633/0.312, allocations: 2.569 MB / 0.5032 GB, free: 156 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004304/0.3124, allocations: 91.36 kB / 0.5033 GB, free: 64 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.582e-05/0.3125, allocations: 16 kB / 0.5033 GB, free: 48 kB / 378.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.149/0.4615, allocations: 179.5 kB / 0.5035 GB, free: 92.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.4616, allocations: 49.14 kB / 0.5035 GB, free: 92.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.4617, allocations: 53.94 kB / 0.5036 GB, free: 92.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.4618, allocations: 4.344 kB / 0.5036 GB, free: 92.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4618, allocations: 0.5312 kB / 0.5036 GB, free: 92.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.4618, allocations: 5.547 kB / 0.5036 GB, free: 92.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00237/0.4642, allocations: 1.23 MB / 0.5048 GB, free: 92.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4642, allocations: 2.078 kB / 0.5048 GB, free: 92.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.4644, allocations: 54.36 kB / 0.5048 GB, free: 92.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004675/0.4649, allocations: 160.3 kB / 0.505 GB, free: 92.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.402e-05/0.4649, allocations: 10.36 kB / 0.505 GB, free: 92.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003336/0.4683, allocations: 2.534 MB / 0.5075 GB, free: 90.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.4683, allocations: 0 / 0.5075 GB, free: 90.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.4699, allocations: 0.896 MB / 0.5084 GB, free: 90.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.61e-05/0.47, allocations: 135.2 kB / 0.5085 GB, free: 90.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.579e-05/0.4701, allocations: 10.91 kB / 0.5085 GB, free: 90.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003524/0.4705, allocations: 51.41 kB / 0.5086 GB, free: 90.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.491e-05/0.4705, allocations: 33.06 kB / 0.5086 GB, free: 90.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-05/0.4706, allocations: 12.67 kB / 0.5086 GB, free: 90.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002985/0.4709, allocations: 296.3 kB / 0.5089 GB, free: 90.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4709, allocations: 0 / 0.5089 GB, free: 90.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006058/0.4715, allocations: 184.8 kB / 0.5091 GB, free: 90.41 MB / 378.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.002079/0.4736, allocations: 1.468 MB / 0.5105 GB, free: 89.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001186/0.4748, allocations: 0.6524 MB / 0.5111 GB, free: 89.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.4748, allocations: 0 / 0.5111 GB, free: 89.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007608/0.4756, allocations: 467.4 kB / 0.5116 GB, free: 89.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.4759, allocations: 81.31 kB / 0.5116 GB, free: 89.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.4777, allocations: 3.764 MB / 0.5153 GB, free: 86.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.478, allocations: 0.8743 MB / 0.5162 GB, free: 85.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.4782, allocations: 54.72 kB / 0.5162 GB, free: 85.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.4783, allocations: 194.5 kB / 0.5164 GB, free: 85.39 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.4783, allocations: 0 / 0.5164 GB, free: 85.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01963/0.498, allocations: 10.47 MB / 0.5266 GB, free: 81.59 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001228/0.4981, allocations: 228.4 kB / 0.5269 GB, free: 81.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.042/2.54, allocations: 0 / 0.5269 GB, free: 81.34 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