Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001596/0.001596, 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.379/1.379, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008974/0.0008974, allocations: 99.86 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1905/0.1905, allocations: 45.15 MB / 383.8 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.774e-05/1.776e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1146, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4111/0.5257, allocations: 85.77 MB / 0.5882 GB, free: 476 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.526, allocations: 66.58 kB / 0.5883 GB, free: 436 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005073/0.5311, allocations: 1.765 MB / 0.59 GB, free: 14.93 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.5312, allocations: 7.938 kB / 0.59 GB, free: 14.93 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.5312, allocations: 4 kB / 0.59 GB, free: 14.92 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003454/0.5315, allocations: 354.3 kB / 0.5904 GB, free: 14.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.5316, allocations: 8.031 kB / 0.5904 GB, free: 14.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.587e-05/0.5316, allocations: 18.05 kB / 0.5904 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001307/0.5318, allocations: 167.1 kB / 0.5905 GB, free: 14.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.5318, allocations: 0 / 0.5905 GB, free: 14.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.5318, allocations: 4 kB / 0.5905 GB, free: 14.31 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.937e-05/0.5319, allocations: 19.81 kB / 0.5906 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.878e-05/0.532, allocations: 58.05 kB / 0.5906 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.5321, allocations: 0 / 0.5906 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.5321, allocations: 0 / 0.5906 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.5321, allocations: 0 / 0.5906 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001644/0.5322, allocations: 157.8 kB / 0.5908 GB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.5325, allocations: 50.44 kB / 0.5908 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.417e-05/0.5325, allocations: 25.02 kB / 0.5908 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002254/0.5328, allocations: 121 kB / 0.591 GB, free: 13.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.513e-05/0.5328, allocations: 34.19 kB / 0.591 GB, free: 13.8 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 1.273e-06/0.5328, allocations: 0 / 0.591 GB, free: 13.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.03736/0.5702, allocations: 2.085 MB / 0.593 GB, free: 11.87 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.5703, allocations: 55.41 kB / 0.5931 GB, free: 11.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.069e-05/0.5704, allocations: 92.19 kB / 0.5932 GB, free: 11.71 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.5704, allocations: 25.7 kB / 0.5932 GB, free: 11.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.202e-05/0.5705, allocations: 95.56 kB / 0.5933 GB, free: 11.58 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.392e-05/0.5706, allocations: 53.67 kB / 0.5933 GB, free: 11.54 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.569e-05/0.5706, allocations: 0 / 0.5933 GB, free: 11.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.5707, allocations: 325.7 kB / 0.5936 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.5709, allocations: 133.9 kB / 0.5938 GB, free: 11.14 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.5711, allocations: 139.5 kB / 0.5939 GB, free: 11.07 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004894/0.5716, allocations: 197 kB / 0.5941 GB, free: 10.94 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.5716, allocations: 0 / 0.5941 GB, free: 10.94 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007685/0.5724, allocations: 415.2 kB / 0.5945 GB, free: 10.65 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.5724, allocations: 12 kB / 0.5945 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.5724, allocations: 0 / 0.5945 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.5724, allocations: 3.984 kB / 0.5945 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004199/0.5728, allocations: 75.94 kB / 0.5946 GB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.5729, allocations: 0 / 0.5946 GB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000215/0.5731, allocations: 27.55 kB / 0.5946 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.5731, allocations: 15.98 kB / 0.5946 GB, free: 10.52 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: 0 () * Number of discrete 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.0001036/0.5732, allocations: 108.9 kB / 0.5947 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008002/0.5741, allocations: 418.8 kB / 0.5951 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.304e-05/0.5741, allocations: 11.84 kB / 0.5951 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00106/0.5752, allocations: 0.4891 MB / 0.5956 GB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.5752, allocations: 0 / 0.5956 GB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5752, allocations: 4 kB / 0.5956 GB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.5752, allocations: 0 / 0.5956 GB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/0.5773, allocations: 0.8459 MB / 0.5964 GB, free: 8.914 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.5773, allocations: 0 / 0.5964 GB, free: 8.914 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002996/0.5776, allocations: 76.12 kB / 0.5965 GB, free: 8.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.5777, allocations: 4 kB / 0.5965 GB, free: 8.836 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.092e-05/0.5777, allocations: 19.14 kB / 0.5965 GB, free: 8.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.5777, allocations: 7.984 kB / 0.5965 GB, free: 8.812 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.5777, allocations: 4.188 kB / 0.5965 GB, free: 8.809 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007667/0.5785, allocations: 478.6 kB / 0.597 GB, free: 8.328 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.593e-05/0.5786, allocations: 89 kB / 0.5971 GB, free: 8.223 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.844e-05/0.5786, allocations: 8 kB / 0.5971 GB, free: 8.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.5788, allocations: 19.98 kB / 0.5971 GB, free: 8.195 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-05/0.5789, allocations: 19.88 kB / 0.5971 GB, free: 8.176 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.062e-05/0.5789, allocations: 22.8 kB / 0.5971 GB, free: 8.156 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.413e-05/0.5789, allocations: 79.28 kB / 0.5972 GB, free: 8.078 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.579, allocations: 0 / 0.5972 GB, free: 8.078 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000896/0.5799, allocations: 339.1 kB / 0.5975 GB, free: 7.75 MB / 394.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 () * 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.002317/0.5822, allocations: 1.579 MB / 0.5991 GB, free: 6.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003967/0.5826, allocations: 272.5 kB / 0.5993 GB, free: 5.988 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5826, allocations: 0 / 0.5993 GB, free: 5.988 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001617/0.5828, allocations: 108.1 kB / 0.5995 GB, free: 5.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001668/0.5829, allocations: 7.984 kB / 0.5995 GB, free: 5.902 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.5844, allocations: 467.4 kB / 0.5999 GB, free: 5.418 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.5847, allocations: 0.7042 MB / 0.6006 GB, free: 4.688 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003752/0.5851, allocations: 96.88 kB / 0.6007 GB, free: 4.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001879/0.5853, allocations: 57.91 kB / 0.6007 GB, free: 4.543 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5853, allocations: 0 / 0.6007 GB, free: 4.543 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03993/0.6252, allocations: 8.364 MB / 0.6089 GB, free: 12.24 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002533/0.6255, allocations: 170.1 kB / 0.6091 GB, free: 12.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.451/2.076, allocations: 0 / 0.6091 GB, free: 12.04 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat