Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000801/0.0008011, allocations: 99.52 kB / 17 MB, free: 6.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000884/0.0008842, allocations: 198.5 kB / 17.91 MB, free: 5.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1986/0.1986, allocations: 45.92 MB / 344.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.000263, allocations: 11.94 kB / 418.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1099, allocations: 63.45 MB / 481.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0005624/0.1106, allocations: 218.9 kB / 481.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001587/0.1122, allocations: 1.373 MB / 483.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.716e-05/0.1122, allocations: 0 / 483.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.408e-06/0.1122, allocations: 0 / 483.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.275e-05/0.1122, allocations: 0 / 483.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004928/0.1127, allocations: 155.1 kB / 483.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.221e-05/0.1128, allocations: 3.984 kB / 483.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.794e-05/0.1128, allocations: 4 kB / 483.4 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.848e-05/0.1129, allocations: 0 / 483.4 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.648e-05/0.1129, allocations: 4 kB / 483.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.025e-05/0.1129, allocations: 4 kB / 483.4 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004178/0.1134, allocations: 271.6 kB / 483.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.257e-06/0.1134, allocations: 0 / 483.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.577e-05/0.1134, allocations: 25.7 kB / 483.7 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.1136, allocations: 91.8 kB / 483.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1136, allocations: 0 / 483.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1136, allocations: 0 / 483.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.1136, allocations: 0 / 483.8 MB, free: 3.133 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003222/0.1139, allocations: 331.4 kB / 484.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.114, allocations: 15.97 kB / 484.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.061e-05/0.114, allocations: 34.56 kB / 484.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.028e-05/0.114, allocations: 0 / 484.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.206e-05/0.1141, allocations: 171 kB / 484.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.168e-06/0.1142, allocations: 4 kB / 484.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.293e-06/0.1142, allocations: 0 / 484.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.1143, allocations: 37.69 kB / 484.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.1143, allocations: 0 / 484.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.1143, allocations: 7.938 kB / 484.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.1143, allocations: 0 / 484.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.177e-05/0.1144, allocations: 8 kB / 484.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000364/0.1147, allocations: 244.9 kB / 484.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.812e-05/0.1148, allocations: 18.52 kB / 484.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.671e-05/0.1148, allocations: 8.922 kB / 484.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.353e-06/0.1148, allocations: 0 / 484.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.1148, allocations: 34.55 kB / 484.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.1149, allocations: 4 kB / 484.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001281/0.115, allocations: 37.55 kB / 484.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.115, allocations: 59.36 kB / 484.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.398e-05/0.1151, allocations: 97.84 kB / 484.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.1151, allocations: 25.7 kB / 484.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.137e-05/0.1152, allocations: 92.27 kB / 485 MB, free: 1.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.217e-06/0.1152, allocations: 0 / 485 MB, free: 1.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.465e-06/0.1152, allocations: 256 / 485 MB, free: 1.715 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.1153, allocations: 318.8 kB / 485.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.439e-05/0.1153, allocations: 7.984 kB / 485.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.033e-05/0.1154, allocations: 14.58 kB / 485.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.539e-05/0.1154, allocations: 4 kB / 485.3 MB, free: 1.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1154, allocations: 0 / 485.3 MB, free: 1.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.437e-05/0.1155, allocations: 57.62 kB / 485.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.1155, allocations: 4 kB / 485.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1155, allocations: 0 / 485.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.909e-06/0.1155, allocations: 0 / 485.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.907e-05/0.1156, allocations: 12 kB / 485.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.1156, allocations: 3.938 kB / 485.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.026e-05/0.1156, allocations: 7.953 kB / 485.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.1156, allocations: 7.938 kB / 485.4 MB, free: 1.262 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.287e-05/0.1157, allocations: 109.9 kB / 485.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.31e-05/0.1158, allocations: 7.984 kB / 485.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.757e-05/0.1159, allocations: 36.83 kB / 485.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.1159, allocations: 4 kB / 485.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1159, allocations: 0 / 485.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.1159, allocations: 0 / 485.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.116, allocations: 157.5 kB / 485.7 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.116, allocations: 4 kB / 485.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.116, allocations: 4.031 kB / 485.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.1161, allocations: 0 / 485.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.662e-06/0.1161, allocations: 0 / 485.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1161, allocations: 3.938 kB / 485.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1161, allocations: 0 / 485.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.506e-05/0.1162, allocations: 139.4 kB / 485.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.01e-05/0.1162, allocations: 77.11 kB / 485.9 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.688e-06/0.1162, allocations: 0 / 485.9 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.554e-05/0.1163, allocations: 8.031 kB / 485.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.175e-05/0.1163, allocations: 0 / 485.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-06/0.1163, allocations: 0 / 485.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.225e-05/0.1164, allocations: 83.27 kB / 486 MB, free: 0.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1164, allocations: 0 / 486 MB, free: 0.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002811/0.1166, allocations: 40 kB / 486.1 MB, free: 0.5039 MB / 350.1 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 () * Number of clocked 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.000508/0.1172, allocations: 0.7091 MB / 486.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.81e-05/0.1173, allocations: 8 kB / 486.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1173, allocations: 0 / 486.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.437e-05/0.1173, allocations: 37.62 kB / 486.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002064/0.1175, allocations: 9.094 kB / 486.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003565/0.1179, allocations: 124.6 kB / 486.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.1182, allocations: 0.6731 MB / 487.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.235e-05/0.1182, allocations: 0 / 487.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.137e-05/0.1182, allocations: 11.44 kB / 487.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1182, allocations: 0 / 487.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01054/0.1288, allocations: 1.654 MB / 489.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/0.129, allocations: 201.3 kB / 489.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.74/1.869, allocations: 0 / 489.5 MB, free: 13.05 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat does not exist to compare? outputFormat=mat