Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",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.001442/0.001442, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009828/0.0009827, allocations: 96.92 kB / 292.1 MB, free: 10.89 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3988/0.3988, allocations: 44.22 MB / 387.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004214/0.000422, allocations: 8 kB / 460 MB, free: 1.426 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4559/0.4564, allocations: 61.91 MB / 0.5096 GB, free: 38.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1251/0.5816, allocations: 85.67 MB / 0.5933 GB, free: 9.426 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.5819, allocations: 75.91 kB / 0.5934 GB, free: 9.359 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009764/0.5917, allocations: 3.057 MB / 0.5964 GB, free: 6.297 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.5917, allocations: 0 / 0.5964 GB, free: 6.297 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.5918, allocations: 4 kB / 0.5964 GB, free: 6.293 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004967/0.5923, allocations: 375.1 kB / 0.5967 GB, free: 5.879 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.5923, allocations: 8.031 kB / 0.5967 GB, free: 5.871 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.243e-05/0.5924, allocations: 34.56 kB / 0.5968 GB, free: 5.828 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.464e-05/0.5924, allocations: 7.906 kB / 0.5968 GB, free: 5.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001466/0.5926, allocations: 163 kB / 0.5969 GB, free: 5.621 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.5926, allocations: 7.953 kB / 0.5969 GB, free: 5.613 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.5926, allocations: 11.94 kB / 0.5969 GB, free: 5.602 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.5928, allocations: 57.67 kB / 0.597 GB, free: 5.539 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.5928, allocations: 0 / 0.597 GB, free: 5.539 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.5929, allocations: 4 kB / 0.597 GB, free: 5.535 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.5929, allocations: 0 / 0.597 GB, free: 5.535 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.563e-05/0.5929, allocations: 23.98 kB / 0.597 GB, free: 5.512 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002369/0.5932, allocations: 177.5 kB / 0.5972 GB, free: 5.289 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.5935, allocations: 54.52 kB / 0.5972 GB, free: 5.227 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002666/0.5937, allocations: 113.1 kB / 0.5973 GB, free: 5.098 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.5938, allocations: 38.56 kB / 0.5974 GB, free: 5.051 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 2.064e-06/0.5938, allocations: 0 / 0.5974 GB, free: 5.051 MB / 410.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.1301/0.7239, allocations: 6.309 MB / 0.6035 GB, free: 14.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.7241, allocations: 59.88 kB / 0.6036 GB, free: 14.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.7242, allocations: 101.1 kB / 0.6037 GB, free: 14.53 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.033e-05/0.7243, allocations: 29.7 kB / 0.6037 GB, free: 14.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.714e-05/0.7243, allocations: 84.14 kB / 0.6038 GB, free: 14.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.7244, allocations: 63.02 kB / 0.6039 GB, free: 14.35 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.35e-05/0.7245, allocations: 3.938 kB / 0.6039 GB, free: 14.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.7246, allocations: 318.8 kB / 0.6042 GB, free: 14.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005787/0.7252, allocations: 247.8 kB / 0.6044 GB, free: 13.78 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005442/0.7258, allocations: 243.8 kB / 0.6046 GB, free: 13.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001137/0.7269, allocations: 302.2 kB / 0.6049 GB, free: 13.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.7269, allocations: 0 / 0.6049 GB, free: 13.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001936/0.7289, allocations: 0.6378 MB / 0.6056 GB, free: 12.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.7289, allocations: 4 kB / 0.6056 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.7289, allocations: 64 / 0.6056 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.729, allocations: 4 kB / 0.6056 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007408/0.7297, allocations: 115.8 kB / 0.6057 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.7297, allocations: 4 kB / 0.6057 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005187/0.7303, allocations: 35.95 kB / 0.6057 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.702e-05/0.7303, allocations: 31.95 kB / 0.6057 GB, free: 12.41 MB / 426.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002038/0.7306, allocations: 126.2 kB / 0.6059 GB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/0.7306, allocations: 7.906 kB / 0.6059 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002402/0.733, allocations: 0.7653 MB / 0.6066 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.733, allocations: 4 kB / 0.6066 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.7331, allocations: 0 / 0.6066 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.7331, allocations: 3.984 kB / 0.6066 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004449/0.7375, allocations: 1.213 MB / 0.6078 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/0.7376, allocations: 4 kB / 0.6078 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006241/0.7382, allocations: 112 kB / 0.6079 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.13e-05/0.7382, allocations: 4 kB / 0.6079 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.426e-05/0.7383, allocations: 27.95 kB / 0.6079 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.318e-06/0.7383, allocations: 7.938 kB / 0.608 GB, free: 10.06 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.7383, allocations: 3.953 kB / 0.608 GB, free: 10.06 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.7402, allocations: 0.6781 MB / 0.6086 GB, free: 9.309 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.185e-05/0.7403, allocations: 85.02 kB / 0.6087 GB, free: 9.207 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.899e-05/0.7404, allocations: 8 kB / 0.6087 GB, free: 9.199 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004736/0.7408, allocations: 39.95 kB / 0.6087 GB, free: 9.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.047e-05/0.7409, allocations: 11.94 kB / 0.6088 GB, free: 9.148 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.535e-05/0.7409, allocations: 27.95 kB / 0.6088 GB, free: 9.121 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.309e-05/0.741, allocations: 87.28 kB / 0.6089 GB, free: 9.035 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.741, allocations: 0 / 0.6089 GB, free: 9.035 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00209/0.7431, allocations: 0.6325 MB / 0.6095 GB, free: 8.402 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005881/0.749, allocations: 1.873 MB / 0.6113 GB, free: 6.461 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.7503, allocations: 483.5 kB / 0.6118 GB, free: 5.988 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.7504, allocations: 0 / 0.6118 GB, free: 5.988 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005499/0.7509, allocations: 220.1 kB / 0.612 GB, free: 5.773 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.7512, allocations: 11.94 kB / 0.612 GB, free: 5.762 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003954/0.7551, allocations: 0.7236 MB / 0.6127 GB, free: 4.977 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.7555, allocations: 0.7007 MB / 0.6134 GB, free: 4.246 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006033/0.7561, allocations: 120.9 kB / 0.6135 GB, free: 4.125 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/0.7565, allocations: 103.3 kB / 0.6136 GB, free: 4.023 MB / 426.7 MB Notification: Performance of SimCode: time 8.71e-07/0.7565, allocations: 4 kB / 0.6136 GB, free: 4.02 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0535/0.81, allocations: 21.22 MB / 0.6343 GB, free: 15.03 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002526/0.8103, allocations: 193.1 kB / 0.6345 GB, free: 14.79 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.148/2.958, allocations: 4.062 kB / 0.6345 GB, free: 14.78 MB / 458.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat does not exist to compare? outputFormat=mat