Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 198.1 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.314/1.314, allocations: 225.6 MB / 234.8 MB, free: 3.188 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001001/0.001002, allocations: 94.55 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1956/0.1956, allocations: 45.15 MB / 383.8 MB, free: 268 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.37e-05/1.39e-05, allocations: 0 / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1072, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3919/0.4991, allocations: 86.76 MB / 0.5892 GB, free: 15.47 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.4994, allocations: 65.34 kB / 0.5892 GB, free: 15.44 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02579/0.5252, allocations: 8.346 MB / 0.5974 GB, free: 8.367 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.5253, allocations: 0 / 0.5974 GB, free: 8.367 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.5253, allocations: 0 / 0.5974 GB, free: 8.367 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.0003588/0.5257, allocations: 341.8 kB / 0.5977 GB, free: 7.992 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.5257, allocations: 8.031 kB / 0.5977 GB, free: 7.984 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.711e-05/0.5258, allocations: 7.984 kB / 0.5977 GB, free: 7.977 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.5259, allocations: 167 kB / 0.5979 GB, free: 7.773 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.5259, allocations: 0 / 0.5979 GB, free: 7.773 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.784e-06/0.5259, allocations: 4 kB / 0.5979 GB, free: 7.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.324e-05/0.526, allocations: 4 kB / 0.5979 GB, free: 7.766 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.959e-05/0.5261, allocations: 25.7 kB / 0.5979 GB, free: 7.734 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.5261, allocations: 0 / 0.5979 GB, free: 7.734 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.5261, allocations: 7.938 kB / 0.5979 GB, free: 7.727 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.5261, allocations: 0 / 0.5979 GB, free: 7.727 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001389/0.5262, allocations: 133.6 kB / 0.5981 GB, free: 7.562 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.584e-05/0.5263, allocations: 18.61 kB / 0.5981 GB, free: 7.535 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.327e-05/0.5263, allocations: 8.859 kB / 0.5981 GB, free: 7.523 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.5264, allocations: 0 / 0.5981 GB, free: 7.523 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.5264, allocations: 34.62 kB / 0.5981 GB, free: 7.48 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.5264, allocations: 0 / 0.5981 GB, free: 7.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001721/0.5266, allocations: 37 kB / 0.5982 GB, free: 7.441 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.5266, allocations: 52.16 kB / 0.5982 GB, free: 7.379 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.331e-05/0.5267, allocations: 96.97 kB / 0.5983 GB, free: 7.277 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.5267, allocations: 25.7 kB / 0.5983 GB, free: 7.246 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.102e-05/0.5268, allocations: 84.08 kB / 0.5984 GB, free: 7.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.388e-05/0.5268, allocations: 0.625 kB / 0.5984 GB, free: 7.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-06/0.5268, allocations: 0 / 0.5984 GB, free: 7.16 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.5269, allocations: 318.3 kB / 0.5987 GB, free: 6.844 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.097e-06/0.5269, allocations: 0 / 0.5987 GB, free: 6.844 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.521e-06/0.527, allocations: 3.938 kB / 0.5987 GB, free: 6.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.238e-05/0.527, allocations: 4.188 kB / 0.5987 GB, free: 6.836 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.527, allocations: 4 kB / 0.5987 GB, free: 6.832 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.889e-05/0.5271, allocations: 45.55 kB / 0.5988 GB, free: 6.781 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.5271, allocations: 4 kB / 0.5988 GB, free: 6.777 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.5271, allocations: 4 kB / 0.5988 GB, free: 6.773 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.5271, allocations: 4 kB / 0.5988 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.383e-06/0.5272, allocations: 0 / 0.5988 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.5272, allocations: 0 / 0.5988 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.48e-05/0.5272, allocations: 0 / 0.5988 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.5272, allocations: 0 / 0.5988 GB, free: 6.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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 6.944e-05/0.5273, allocations: 109 kB / 0.5989 GB, free: 6.656 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.228e-05/0.5273, allocations: 41.58 kB / 0.5989 GB, free: 6.609 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-06/0.5274, allocations: 4 kB / 0.5989 GB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001269/0.5275, allocations: 45.09 kB / 0.599 GB, free: 6.562 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.5275, allocations: 3.984 kB / 0.599 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.5275, allocations: 0 / 0.599 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.5275, allocations: 0 / 0.599 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.412e-05/0.5276, allocations: 134.3 kB / 0.5991 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.5276, allocations: 0 / 0.5991 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.5276, allocations: 0 / 0.5991 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.5276, allocations: 0 / 0.5991 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.5276, allocations: 0 / 0.5991 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.5276, allocations: 11.92 kB / 0.5991 GB, free: 6.379 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.5277, allocations: 0 / 0.5991 GB, free: 6.379 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.742e-05/0.5278, allocations: 56.39 kB / 0.5992 GB, free: 6.309 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.157e-05/0.5278, allocations: 85.09 kB / 0.5992 GB, free: 6.207 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.145e-05/0.5278, allocations: 0 / 0.5992 GB, free: 6.207 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.749e-05/0.5279, allocations: 7.984 kB / 0.5993 GB, free: 6.199 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.487e-05/0.5279, allocations: 0 / 0.5993 GB, free: 6.199 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.5279, allocations: 0 / 0.5993 GB, free: 6.199 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.12e-05/0.5279, allocations: 83.22 kB / 0.5993 GB, free: 6.117 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5279, allocations: 0 / 0.5993 GB, free: 6.117 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002575/0.5282, allocations: 51.81 kB / 0.5994 GB, free: 6.07 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0005452/0.5288, allocations: 0.6507 MB / 0.6 GB, free: 5.391 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.398e-05/0.5288, allocations: 29.7 kB / 0.6 GB, free: 5.355 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.5289, allocations: 0 / 0.6 GB, free: 5.355 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.893e-05/0.5289, allocations: 25.7 kB / 0.6001 GB, free: 5.324 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001095/0.529, allocations: 7.438 kB / 0.6001 GB, free: 5.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003411/0.5293, allocations: 105.7 kB / 0.6002 GB, free: 5.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.5296, allocations: 0.6767 MB / 0.6008 GB, free: 4.477 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.034e-05/0.5297, allocations: 4 kB / 0.6008 GB, free: 4.473 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.698e-05/0.5297, allocations: 7.438 kB / 0.6008 GB, free: 4.465 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5297, allocations: 0 / 0.6008 GB, free: 4.465 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01948/0.5492, allocations: 1.136 MB / 0.602 GB, free: 3.34 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/0.5494, allocations: 136.8 kB / 0.6021 GB, free: 3.152 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.607/2.157, allocations: 0 / 0.6021 GB, free: 3.152 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat does not exist to compare? outputFormat=mat