Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.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.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001181/0.001181, allocations: 202.1 kB / 8.543 MB, free: 1.797 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.183/1.183, allocations: 225.5 MB / 234.4 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008636/0.0008637, allocations: 87.86 kB / 286.3 MB, free: 5.211 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1701/0.1701, allocations: 45.14 MB / 383.3 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.19/0.3602, allocations: 69.37 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08873/0.4489, allocations: 63.25 MB / 0.5039 GB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2663/0.7153, allocations: 88.57 MB / 0.5904 GB, free: 14.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001873/0.7155, allocations: 81.03 kB / 0.5904 GB, free: 14.17 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.01512/0.7306, allocations: 5.561 MB / 0.5959 GB, free: 9.645 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.7307, allocations: 9.031 kB / 0.5959 GB, free: 9.637 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.041e-05/0.7307, allocations: 12.69 kB / 0.5959 GB, free: 9.625 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.7308, allocations: 174.9 kB / 0.5961 GB, free: 9.414 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.7308, allocations: 7.906 kB / 0.5961 GB, free: 9.406 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.7309, allocations: 3.438 kB / 0.5961 GB, free: 9.406 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.96e-05/0.731, allocations: 54.34 kB / 0.5961 GB, free: 9.367 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.93e-05/0.7311, allocations: 60.44 kB / 0.5962 GB, free: 9.312 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.7311, allocations: 0 / 0.5962 GB, free: 9.312 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-06/0.7311, allocations: 0 / 0.5962 GB, free: 9.312 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.7311, allocations: 0 / 0.5962 GB, free: 9.312 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001551/0.7313, allocations: 170.4 kB / 0.5963 GB, free: 9.125 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.919e-05/0.7313, allocations: 60.31 kB / 0.5964 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.055e-05/0.7314, allocations: 37.3 kB / 0.5964 GB, free: 9.043 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.646e-05/0.7314, allocations: 23.86 kB / 0.5965 GB, free: 9.023 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.7315, allocations: 30.56 kB / 0.5965 GB, free: 8.984 MB / 394.7 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.7315, allocations: 0 / 0.5965 GB, free: 8.984 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.0227/0.7542, allocations: 1.909 MB / 0.5984 GB, free: 7.176 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.7543, allocations: 59.28 kB / 0.5984 GB, free: 7.105 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.7544, allocations: 114.6 kB / 0.5985 GB, free: 6.992 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.7544, allocations: 25.7 kB / 0.5985 GB, free: 6.961 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.532e-05/0.7544, allocations: 83.44 kB / 0.5986 GB, free: 6.875 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.113e-05/0.7545, allocations: 34.52 kB / 0.5987 GB, free: 6.844 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.829e-05/0.7545, allocations: 0 / 0.5987 GB, free: 6.844 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.527e-05/0.7546, allocations: 326 kB / 0.599 GB, free: 6.52 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.7548, allocations: 78.05 kB / 0.599 GB, free: 6.477 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.7549, allocations: 74.8 kB / 0.5991 GB, free: 6.434 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/0.7565, allocations: 254.1 kB / 0.5994 GB, free: 6.223 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.7565, allocations: 0 / 0.5994 GB, free: 6.223 MB / 394.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.001826/0.7584, allocations: 394.8 kB / 0.5997 GB, free: 5.898 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.7584, allocations: 4 kB / 0.5997 GB, free: 5.895 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.7584, allocations: 8 kB / 0.5997 GB, free: 5.887 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.7584, allocations: 0 / 0.5997 GB, free: 5.887 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006241/0.7591, allocations: 75.36 kB / 0.5998 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.7591, allocations: 0 / 0.5998 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004824/0.7596, allocations: 39.97 kB / 0.5999 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.558e-05/0.7596, allocations: 7.984 kB / 0.5999 GB, free: 5.77 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 (12): * Single equations (assignments): 12 * 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 8.51e-05/0.7597, allocations: 101 kB / 0.6 GB, free: 5.664 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.347e-05/0.7597, allocations: 19.8 kB / 0.6 GB, free: 5.645 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002123/0.7619, allocations: 452.4 kB / 0.6004 GB, free: 5.262 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.7619, allocations: 4 kB / 0.6004 GB, free: 5.258 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.7619, allocations: 3.938 kB / 0.6004 GB, free: 5.254 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.7619, allocations: 4 kB / 0.6004 GB, free: 5.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003682/0.7656, allocations: 0.878 MB / 0.6013 GB, free: 4.434 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.7656, allocations: 3.938 kB / 0.6013 GB, free: 4.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00057/0.7662, allocations: 67.97 kB / 0.6013 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.952e-06/0.7662, allocations: 4 kB / 0.6013 GB, free: 4.359 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.15e-05/0.7662, allocations: 7.984 kB / 0.6014 GB, free: 4.352 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.7662, allocations: 3.906 kB / 0.6014 GB, free: 4.348 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.7662, allocations: 0 / 0.6014 GB, free: 4.348 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00192/0.7682, allocations: 0.525 MB / 0.6019 GB, free: 3.848 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001979/0.7702, allocations: 0.9043 MB / 0.6028 GB, free: 2.969 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.677e-05/0.7703, allocations: 103.4 kB / 0.6029 GB, free: 2.855 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/0.7703, allocations: 4 kB / 0.6029 GB, free: 2.852 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005154/0.7709, allocations: 39.97 kB / 0.6029 GB, free: 2.812 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.023e-05/0.7709, allocations: 11.92 kB / 0.6029 GB, free: 2.805 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/0.7709, allocations: 11.89 kB / 0.6029 GB, free: 2.793 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.686e-05/0.771, allocations: 95.09 kB / 0.603 GB, free: 2.703 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001185/0.7722, allocations: 182.8 kB / 0.6032 GB, free: 2.531 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0006375/0.7728, allocations: 259.7 kB / 0.6034 GB, free: 2.273 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003597/0.7732, allocations: 178.6 kB / 0.6036 GB, free: 2.16 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.7732, allocations: 0 / 0.6036 GB, free: 2.16 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001644/0.7734, allocations: 91.59 kB / 0.6037 GB, free: 2.102 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.7736, allocations: 16.2 kB / 0.6037 GB, free: 2.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/0.776, allocations: 417.2 kB / 0.6041 GB, free: 1.688 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004488/0.7765, allocations: 0.7387 MB / 0.6048 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of SimCode: time 7.91e-07/0.7765, allocations: 0 / 0.6048 GB, free: 0.9219 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat does not exist to compare? outputFormat=mat