Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",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.001431/0.001431, allocations: 178.1 kB / 8.359 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.091/2.091, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 91.38 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4353/0.4353, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.957e-05/1.968e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4111/0.4111, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1613/0.5724, allocations: 84.6 MB / 0.5486 GB, free: 14.58 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/0.5728, allocations: 71.95 kB / 0.5487 GB, free: 14.51 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04874/0.6216, allocations: 8.192 MB / 0.5567 GB, free: 6.316 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.6216, allocations: 0 / 0.5567 GB, free: 6.316 MB / 395.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.6216, allocations: 0 / 0.5567 GB, free: 6.316 MB / 395.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.0004416/0.6221, allocations: 342.5 kB / 0.557 GB, free: 5.938 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.6222, allocations: 15.91 kB / 0.557 GB, free: 5.922 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.016e-05/0.6222, allocations: 4 kB / 0.557 GB, free: 5.918 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.6224, allocations: 175 kB / 0.5572 GB, free: 5.707 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.6224, allocations: 0 / 0.5572 GB, free: 5.707 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-06/0.6224, allocations: 0 / 0.5572 GB, free: 5.707 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.537e-05/0.6225, allocations: 4 kB / 0.5572 GB, free: 5.703 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.599e-05/0.6226, allocations: 33.7 kB / 0.5572 GB, free: 5.664 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.6226, allocations: 0 / 0.5572 GB, free: 5.664 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.6226, allocations: 0 / 0.5572 GB, free: 5.664 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.6226, allocations: 4 kB / 0.5572 GB, free: 5.66 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004077/0.623, allocations: 225.5 kB / 0.5575 GB, free: 5.402 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.75e-05/0.6231, allocations: 18.52 kB / 0.5575 GB, free: 5.375 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.784e-05/0.6231, allocations: 8.797 kB / 0.5575 GB, free: 5.363 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.6232, allocations: 4.062 kB / 0.5575 GB, free: 5.359 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.6232, allocations: 30.56 kB / 0.5575 GB, free: 5.32 MB / 395.1 MB Notification: Performance of pre-optimization done (n=1): time 2.293e-05/0.6233, allocations: 0 / 0.5575 GB, free: 5.32 MB / 395.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002062/0.6235, allocations: 33.7 kB / 0.5575 GB, free: 5.281 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.6235, allocations: 63.42 kB / 0.5576 GB, free: 5.207 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.541e-05/0.6236, allocations: 85 kB / 0.5577 GB, free: 5.117 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.6237, allocations: 25.7 kB / 0.5577 GB, free: 5.086 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.045e-05/0.6237, allocations: 159.1 kB / 0.5579 GB, free: 4.93 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.249e-05/0.6238, allocations: 7.906 kB / 0.5579 GB, free: 4.922 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-06/0.6238, allocations: 0 / 0.5579 GB, free: 4.922 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.6239, allocations: 314.8 kB / 0.5582 GB, free: 4.605 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.289e-05/0.6239, allocations: 3.938 kB / 0.5582 GB, free: 4.602 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.461e-05/0.624, allocations: 26.69 kB / 0.5582 GB, free: 4.566 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.539e-05/0.6241, allocations: 4 kB / 0.5582 GB, free: 4.562 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6241, allocations: 0 / 0.5582 GB, free: 4.562 MB / 395.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001259/0.6242, allocations: 49.64 kB / 0.5582 GB, free: 4.508 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.6242, allocations: 4 kB / 0.5583 GB, free: 4.504 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/0.6243, allocations: 4.078 kB / 0.5583 GB, free: 4.5 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.6243, allocations: 8 kB / 0.5583 GB, free: 4.492 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.052e-05/0.6244, allocations: 0 / 0.5583 GB, free: 4.492 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.6244, allocations: 4 kB / 0.5583 GB, free: 4.488 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.698e-05/0.6244, allocations: 0 / 0.5583 GB, free: 4.488 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.406e-05/0.6244, allocations: 4 kB / 0.5583 GB, free: 4.484 MB / 395.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * 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.834e-05/0.6245, allocations: 108.9 kB / 0.5584 GB, free: 4.371 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001092/0.6247, allocations: 37.64 kB / 0.5584 GB, free: 4.328 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.6247, allocations: 3.984 kB / 0.5584 GB, free: 4.324 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001554/0.6249, allocations: 49.56 kB / 0.5585 GB, free: 4.27 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.6249, allocations: 0 / 0.5585 GB, free: 4.27 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.6249, allocations: 0 / 0.5585 GB, free: 4.27 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.6249, allocations: 0 / 0.5585 GB, free: 4.27 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001808/0.6251, allocations: 134.2 kB / 0.5586 GB, free: 4.102 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.6251, allocations: 0 / 0.5586 GB, free: 4.102 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.313e-06/0.6251, allocations: 0 / 0.5586 GB, free: 4.102 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/0.6251, allocations: 4 kB / 0.5586 GB, free: 4.098 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.6252, allocations: 4 kB / 0.5586 GB, free: 4.094 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.6252, allocations: 4.031 kB / 0.5586 GB, free: 4.09 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.6252, allocations: 0 / 0.5586 GB, free: 4.09 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001558/0.6253, allocations: 139.4 kB / 0.5587 GB, free: 3.938 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.594e-05/0.6254, allocations: 77.11 kB / 0.5588 GB, free: 3.844 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.6254, allocations: 0 / 0.5588 GB, free: 3.844 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.69e-05/0.6255, allocations: 0 / 0.5588 GB, free: 3.844 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.536e-05/0.6256, allocations: 7.938 kB / 0.5588 GB, free: 3.836 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.6256, allocations: 4.031 kB / 0.5588 GB, free: 3.832 MB / 395.1 MB Notification: Performance of sorting global known variables: time 5.496e-05/0.6256, allocations: 75.28 kB / 0.5589 GB, free: 3.758 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6257, allocations: 0 / 0.5589 GB, free: 3.758 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004905/0.6261, allocations: 51.92 kB / 0.5589 GB, free: 3.707 MB / 395.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 () * 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.0008044/0.627, allocations: 0.7124 MB / 0.5596 GB, free: 2.965 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001223/0.6271, allocations: 41.64 kB / 0.5597 GB, free: 2.918 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6271, allocations: 0 / 0.5597 GB, free: 2.918 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 2.761e-05/0.6272, allocations: 29.7 kB / 0.5597 GB, free: 2.883 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.6274, allocations: 3.938 kB / 0.5597 GB, free: 2.879 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004994/0.6279, allocations: 132.5 kB / 0.5598 GB, free: 2.707 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.6282, allocations: 0.6768 MB / 0.5605 GB, free: 2.004 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.511e-05/0.6283, allocations: 7.438 kB / 0.5605 GB, free: 1.996 MB / 395.1 MB Notification: Performance of SimCode: time 8.42e-07/0.6283, allocations: 4.25 kB / 0.5605 GB, free: 1.992 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.595/3.223, allocations: 1.176 MB / 0.5617 GB, free: 0.8164 MB / 395.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat does not exist to compare? outputFormat=mat