Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 198.9 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 227.2 MB / 245 MB, free: 7.625 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009079/0.0009078, allocations: 101.2 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002068/0.0002068, allocations: 8 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.1847, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08716/0.2719, allocations: 81.71 MB / 491.2 MB, free: 8.906 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.2722, allocations: 79.95 kB / 491.3 MB, free: 8.828 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01522/0.2874, allocations: 6.296 MB / 497.6 MB, free: 2.512 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2875, allocations: 0 / 497.6 MB, free: 2.512 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.006e-05/0.2875, allocations: 8 kB / 497.6 MB, free: 2.504 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0008644/0.2884, allocations: 0.6406 MB / 498.2 MB, free: 1.816 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.2884, allocations: 12.03 kB / 498.3 MB, free: 1.805 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.018e-05/0.2885, allocations: 74.53 kB / 498.3 MB, free: 1.723 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.2887, allocations: 51.52 kB / 498.4 MB, free: 1.672 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.289, allocations: 316.8 kB / 498.7 MB, free: 1.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.2891, allocations: 25 kB / 498.7 MB, free: 1.293 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.935e-05/0.2891, allocations: 32 kB / 498.7 MB, free: 1.262 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006232/0.2897, allocations: 390.2 kB / 499.1 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.2898, allocations: 0 / 499.1 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.2898, allocations: 16 kB / 499.1 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.2898, allocations: 12 kB / 499.2 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005807/0.2904, allocations: 307.8 kB / 499.5 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.2925, allocations: 1.467 MB / 0.4892 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005724/0.2931, allocations: 250.7 kB / 0.4894 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.2931, allocations: 0 / 0.4894 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.2931, allocations: 42.56 kB / 0.4895 GB, free: 14.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=16): time 3.456e-06/0.2931, allocations: 0 / 0.4895 GB, free: 14.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.001956/0.2951, allocations: 0.7953 MB / 0.4902 GB, free: 13.83 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.2951, allocations: 51.41 kB / 0.4903 GB, free: 13.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.2954, allocations: 278.5 kB / 0.4906 GB, free: 13.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.2954, allocations: 33.7 kB / 0.4906 GB, free: 13.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.2956, allocations: 223.7 kB / 0.4908 GB, free: 13.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.363e-05/0.2956, allocations: 63.19 kB / 0.4909 GB, free: 13.17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.2956, allocations: 4 kB / 0.4909 GB, free: 13.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.94e-05/0.2957, allocations: 334.8 kB / 0.4912 GB, free: 12.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.2959, allocations: 91.95 kB / 0.4913 GB, free: 12.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.2962, allocations: 165.4 kB / 0.4914 GB, free: 12.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002173/0.2964, allocations: 107.9 kB / 0.4915 GB, free: 12.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2964, allocations: 0 / 0.4915 GB, free: 12.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001011/0.2974, allocations: 452.6 kB / 0.492 GB, free: 11.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.2974, allocations: 6.5 kB / 0.492 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.2975, allocations: 4 kB / 0.492 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003993/0.2979, allocations: 117.7 kB / 0.4921 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.298, allocations: 47.91 kB / 0.4921 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003392/0.3014, allocations: 3.318 MB / 0.4954 GB, free: 8.223 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000207/0.3017, allocations: 39.59 kB / 0.4954 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.3017, allocations: 19.94 kB / 0.4954 GB, free: 8.164 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001351/0.3018, allocations: 157.8 kB / 0.4956 GB, free: 8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.905e-05/0.3019, allocations: 27.72 kB / 0.4956 GB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.957e-05/0.3019, allocations: 30.3 kB / 0.4956 GB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3019, allocations: 0 / 0.4956 GB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.302, allocations: 0 / 0.4956 GB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.302, allocations: 0 / 0.4956 GB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003382/0.3023, allocations: 369.3 kB / 0.496 GB, free: 7.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3023, allocations: 3.938 kB / 0.496 GB, free: 7.527 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.242e-05/0.3024, allocations: 16 kB / 0.496 GB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003261/0.3027, allocations: 113.6 kB / 0.4961 GB, free: 7.395 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.3028, allocations: 4 kB / 0.4961 GB, free: 7.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003025/0.3058, allocations: 3.232 MB / 0.4993 GB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.3058, allocations: 7.969 kB / 0.4993 GB, free: 3.891 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008275/0.3066, allocations: 455.9 kB / 0.4997 GB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.933e-05/0.3067, allocations: 104.8 kB / 0.4998 GB, free: 3.305 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.83e-05/0.3068, allocations: 8 kB / 0.4998 GB, free: 3.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.307, allocations: 27.97 kB / 0.4998 GB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.307, allocations: 15.98 kB / 0.4999 GB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.3071, allocations: 4 kB / 0.4999 GB, free: 3.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001943/0.3073, allocations: 221.9 kB / 0.5001 GB, free: 3.031 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3073, allocations: 4 kB / 0.5001 GB, free: 3.027 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004291/0.3077, allocations: 99.75 kB / 0.5002 GB, free: 2.93 MB / 378.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001105/0.3088, allocations: 0.983 MB / 0.5011 GB, free: 1.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009527/0.3098, allocations: 0.5206 MB / 0.5016 GB, free: 1.363 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3098, allocations: 0 / 0.5016 GB, free: 1.363 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003856/0.3102, allocations: 345.8 kB / 0.502 GB, free: 1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.3105, allocations: 44.64 kB / 0.502 GB, free: 0.957 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1495/0.46, allocations: 3.382 MB / 0.5053 GB, free: 93.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.4602, allocations: 0.7897 MB / 0.5061 GB, free: 92.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001543/0.4604, allocations: 26 kB / 0.5061 GB, free: 92.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.4606, allocations: 100.9 kB / 0.5062 GB, free: 92.88 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.4606, allocations: 2.375 kB / 0.5062 GB, free: 92.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01752/0.4781, allocations: 6.392 MB / 0.5125 GB, free: 92.58 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001437/0.4783, allocations: 212.5 kB / 0.5127 GB, free: 92.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.263, allocations: 0 / 0.5127 GB, free: 92.34 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat does not exist to compare? outputFormat=mat