Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002275/0.002274, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.333/2.333, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001086, allocations: 74.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2831/0.2831, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.715e-05/3.76e-05, allocations: 0 / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5978/0.7183, allocations: 85.27 MB / 0.5562 GB, free: 2.238 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.7187, allocations: 66.72 kB / 0.5562 GB, free: 2.207 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04594/0.7646, allocations: 8.223 MB / 0.5643 GB, free: 11.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.7647, allocations: 0 / 0.5643 GB, free: 11.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.7647, allocations: 0 / 0.5643 GB, free: 11.12 MB / 378.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.0004838/0.7652, allocations: 345.8 kB / 0.5646 GB, free: 10.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/0.7653, allocations: 12.03 kB / 0.5646 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.134e-05/0.7653, allocations: 30.56 kB / 0.5646 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.677e-05/0.7653, allocations: 0 / 0.5646 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.7655, allocations: 167 kB / 0.5648 GB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.7655, allocations: 7.062 kB / 0.5648 GB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.7656, allocations: 0 / 0.5648 GB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001132/0.7657, allocations: 37.62 kB / 0.5648 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.7657, allocations: 0 / 0.5648 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.7657, allocations: 0 / 0.5648 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.7657, allocations: 4 kB / 0.5648 GB, free: 10.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.33e-05/0.7658, allocations: 0 / 0.5648 GB, free: 10.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000194/0.766, allocations: 161.2 kB / 0.565 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.188e-05/0.766, allocations: 18.61 kB / 0.565 GB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.2e-05/0.7661, allocations: 4.859 kB / 0.565 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.7661, allocations: 0 / 0.565 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.7662, allocations: 34.56 kB / 0.565 GB, free: 10.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.884e-06/0.7662, allocations: 8 kB / 0.565 GB, free: 10.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001346/0.7663, allocations: 33.02 kB / 0.5651 GB, free: 10.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.7664, allocations: 51.41 kB / 0.5651 GB, free: 10.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.101e-05/0.7665, allocations: 89 kB / 0.5652 GB, free: 9.961 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.7665, allocations: 25.7 kB / 0.5652 GB, free: 9.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.43e-05/0.7666, allocations: 150.6 kB / 0.5654 GB, free: 9.781 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.923e-05/0.7666, allocations: 4.609 kB / 0.5654 GB, free: 9.777 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.7666, allocations: 4.156 kB / 0.5654 GB, free: 9.773 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.7668, allocations: 318.2 kB / 0.5657 GB, free: 9.457 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.013e-05/0.7668, allocations: 4 kB / 0.5657 GB, free: 9.453 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.345e-05/0.7669, allocations: 0 / 0.5657 GB, free: 9.453 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.403e-05/0.7669, allocations: 4 kB / 0.5657 GB, free: 9.449 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.7669, allocations: 0 / 0.5657 GB, free: 9.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.496e-05/0.767, allocations: 33.64 kB / 0.5657 GB, free: 9.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.767, allocations: 11.94 kB / 0.5657 GB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.7671, allocations: 4.094 kB / 0.5657 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.7671, allocations: 0 / 0.5657 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/0.7671, allocations: 0 / 0.5657 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.7671, allocations: 3.984 kB / 0.5657 GB, free: 9.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.498e-05/0.7672, allocations: 3.938 kB / 0.5658 GB, free: 9.387 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.507e-06/0.7672, allocations: 4 kB / 0.5658 GB, free: 9.383 MB / 378.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 8.22e-05/0.7673, allocations: 104.9 kB / 0.5659 GB, free: 9.273 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.383e-05/0.7673, allocations: 3.906 kB / 0.5659 GB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001635/0.7675, allocations: 55.81 kB / 0.5659 GB, free: 9.207 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.7675, allocations: 0 / 0.5659 GB, free: 9.207 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.7675, allocations: 4 kB / 0.5659 GB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.7675, allocations: 0 / 0.5659 GB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001346/0.7677, allocations: 149.4 kB / 0.5661 GB, free: 9.012 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.7677, allocations: 0 / 0.5661 GB, free: 9.012 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.55e-06/0.7677, allocations: 7.984 kB / 0.5661 GB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.7677, allocations: 0 / 0.5661 GB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.7677, allocations: 0 / 0.5661 GB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.7678, allocations: 0 / 0.5661 GB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.7678, allocations: 4.031 kB / 0.5661 GB, free: 9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.7679, allocations: 56.39 kB / 0.5661 GB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.05e-05/0.768, allocations: 81.06 kB / 0.5662 GB, free: 8.832 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.768, allocations: 3.984 kB / 0.5662 GB, free: 8.828 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.553e-05/0.7681, allocations: 4 kB / 0.5662 GB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.857e-05/0.7681, allocations: 0 / 0.5662 GB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.7681, allocations: 4.031 kB / 0.5662 GB, free: 8.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.151e-05/0.7682, allocations: 79.28 kB / 0.5663 GB, free: 8.742 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.7682, allocations: 3.938 kB / 0.5663 GB, free: 8.738 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004182/0.7686, allocations: 47.94 kB / 0.5663 GB, free: 8.691 MB / 378.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.0007301/0.7693, allocations: 0.6462 MB / 0.567 GB, free: 8.023 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001036/0.7695, allocations: 33.7 kB / 0.567 GB, free: 7.984 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.7695, allocations: 0 / 0.567 GB, free: 7.984 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.695e-05/0.7695, allocations: 37.45 kB / 0.567 GB, free: 7.945 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.7697, allocations: 10.02 kB / 0.567 GB, free: 7.941 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004792/0.7702, allocations: 124.2 kB / 0.5672 GB, free: 7.777 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.7705, allocations: 0.677 MB / 0.5678 GB, free: 7.074 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.756e-05/0.7705, allocations: 14.69 kB / 0.5678 GB, free: 7.062 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7705, allocations: 4.125 kB / 0.5678 GB, free: 7.059 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.438/3.209, allocations: 1.129 MB / 0.5689 GB, free: 5.934 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat does not exist to compare? outputFormat=mat