Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009983/0.0009979, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008794/0.0008795, allocations: 92.98 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2016/0.2016, allocations: 45.15 MB / 383.8 MB, free: 248 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.912e-05/1.915e-05, allocations: 0 / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1071, allocations: 63.25 MB / 0.5044 GB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3745/0.4817, allocations: 87.96 MB / 0.5903 GB, free: 14.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001475/0.4819, allocations: 61.19 kB / 0.5904 GB, free: 14.27 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01662/0.4985, allocations: 5.99 MB / 0.5962 GB, free: 9.457 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4985, allocations: 0 / 0.5962 GB, free: 9.457 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.4986, allocations: 3.688 kB / 0.5962 GB, free: 9.457 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005951/0.4992, allocations: 411.6 kB / 0.5966 GB, free: 9.008 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/0.4992, allocations: 8.031 kB / 0.5966 GB, free: 9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.786e-05/0.4993, allocations: 4 kB / 0.5967 GB, free: 8.996 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001682/0.4994, allocations: 163 kB / 0.5968 GB, free: 8.797 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.4995, allocations: 0 / 0.5968 GB, free: 8.797 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.4995, allocations: 4 kB / 0.5968 GB, free: 8.793 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.763e-05/0.4995, allocations: 3.984 kB / 0.5968 GB, free: 8.789 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.122e-05/0.4996, allocations: 29.7 kB / 0.5968 GB, free: 8.754 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.4996, allocations: 0 / 0.5968 GB, free: 8.754 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-06/0.4996, allocations: 0 / 0.5968 GB, free: 8.754 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-06/0.4996, allocations: 0 / 0.5968 GB, free: 8.754 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001394/0.4998, allocations: 133.7 kB / 0.597 GB, free: 8.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.682e-05/0.4998, allocations: 18.52 kB / 0.597 GB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.625e-05/0.4999, allocations: 12.84 kB / 0.597 GB, free: 8.547 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.114e-05/0.4999, allocations: 4.062 kB / 0.597 GB, free: 8.543 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.14e-05/0.4999, allocations: 56.27 kB / 0.5971 GB, free: 8.473 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.81e-07/0.4999, allocations: 0 / 0.5971 GB, free: 8.473 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002059/0.5002, allocations: 33.7 kB / 0.5971 GB, free: 8.434 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.05e-05/0.5002, allocations: 81.17 kB / 0.5972 GB, free: 8.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.669e-05/0.5003, allocations: 88.98 kB / 0.5973 GB, free: 8.246 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.5003, allocations: 33.86 kB / 0.5973 GB, free: 8.207 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.05e-05/0.5004, allocations: 80.14 kB / 0.5974 GB, free: 8.125 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.5004, allocations: 0.625 kB / 0.5974 GB, free: 8.125 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.154e-06/0.5004, allocations: 0 / 0.5974 GB, free: 8.125 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.5006, allocations: 318 kB / 0.5977 GB, free: 7.809 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.131e-05/0.5006, allocations: 3.938 kB / 0.5977 GB, free: 7.805 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.502e-06/0.5006, allocations: 7.938 kB / 0.5977 GB, free: 7.797 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.638e-05/0.5006, allocations: 0 / 0.5977 GB, free: 7.797 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.5006, allocations: 64 / 0.5977 GB, free: 7.797 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.161e-05/0.5007, allocations: 41.66 kB / 0.5977 GB, free: 7.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.446e-05/0.5008, allocations: 33.69 kB / 0.5978 GB, free: 7.711 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.5008, allocations: 0 / 0.5978 GB, free: 7.711 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.5008, allocations: 4 kB / 0.5978 GB, free: 7.707 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.673e-06/0.5008, allocations: 0 / 0.5978 GB, free: 7.707 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.5008, allocations: 0 / 0.5978 GB, free: 7.707 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.587e-05/0.5008, allocations: 0 / 0.5978 GB, free: 7.707 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-06/0.5009, allocations: 0 / 0.5978 GB, free: 7.707 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.883e-05/0.5009, allocations: 130.7 kB / 0.5979 GB, free: 7.566 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.145e-05/0.501, allocations: 57.23 kB / 0.5979 GB, free: 7.508 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.346e-06/0.501, allocations: 4 kB / 0.5979 GB, free: 7.504 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.474e-05/0.5011, allocations: 7.703 kB / 0.5979 GB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.5011, allocations: 4 kB / 0.5979 GB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.5011, allocations: 0 / 0.5979 GB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.5011, allocations: 0 / 0.5979 GB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.976e-05/0.5012, allocations: 134.2 kB / 0.5981 GB, free: 7.328 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.5012, allocations: 0 / 0.5981 GB, free: 7.328 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.5012, allocations: 0 / 0.5981 GB, free: 7.328 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.5012, allocations: 3.984 kB / 0.5981 GB, free: 7.324 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.333e-06/0.5012, allocations: 4.031 kB / 0.5981 GB, free: 7.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.5012, allocations: 0 / 0.5981 GB, free: 7.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5012, allocations: 0 / 0.5981 GB, free: 7.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.155e-05/0.5013, allocations: 64.88 kB / 0.5981 GB, free: 7.242 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.251e-05/0.5014, allocations: 81.06 kB / 0.5982 GB, free: 7.145 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.5014, allocations: 4 kB / 0.5982 GB, free: 7.141 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.165e-05/0.5014, allocations: 0 / 0.5982 GB, free: 7.141 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.833e-05/0.5015, allocations: 4.031 kB / 0.5982 GB, free: 7.137 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.5015, allocations: 3.938 kB / 0.5982 GB, free: 7.133 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.304e-05/0.5015, allocations: 82.78 kB / 0.5983 GB, free: 7.055 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5015, allocations: 0 / 0.5983 GB, free: 7.055 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003526/0.5019, allocations: 75.78 kB / 0.5984 GB, free: 6.984 MB / 394.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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009249/0.5028, allocations: 0.8407 MB / 0.5992 GB, free: 6.164 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.537e-05/0.5029, allocations: 55.41 kB / 0.5993 GB, free: 6.098 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.5029, allocations: 4.062 kB / 0.5993 GB, free: 6.094 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.905e-05/0.5029, allocations: 59.03 kB / 0.5993 GB, free: 6.027 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.128e-05/0.503, allocations: 3.984 kB / 0.5993 GB, free: 6.023 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003037/0.5033, allocations: 121.6 kB / 0.5994 GB, free: 5.867 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002143/0.5036, allocations: 0.6768 MB / 0.6001 GB, free: 5.164 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 8.245e-06/0.5036, allocations: 0 / 0.6001 GB, free: 5.164 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.209e-05/0.5036, allocations: 7.438 kB / 0.6001 GB, free: 5.156 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5036, allocations: 0 / 0.6001 GB, free: 5.156 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02277/0.5264, allocations: 2.012 MB / 0.6021 GB, free: 3.164 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002166/0.5267, allocations: 152.1 kB / 0.6022 GB, free: 2.977 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.495/2.022, allocations: 4 kB / 0.6022 GB, free: 2.973 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat does not exist to compare? outputFormat=mat