Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",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.002282/0.002281, allocations: 186.7 kB / 16.41 MB, free: 5.727 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.233/2.233, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001173/0.001173, allocations: 96.42 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5276/0.5276, allocations: 43.55 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006332/0.0006333, allocations: 8 kB / 431.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1348, allocations: 58.85 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4717/0.6065, allocations: 84.56 MB / 0.5614 GB, free: 2.027 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.6069, allocations: 63.97 kB / 0.5615 GB, free: 1.965 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01419/0.6211, allocations: 3.033 MB / 0.5644 GB, free: 14.96 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.6211, allocations: 0 / 0.5644 GB, free: 14.96 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.6211, allocations: 0 / 0.5644 GB, free: 14.96 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005105/0.6217, allocations: 375 kB / 0.5648 GB, free: 14.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.6217, allocations: 8.031 kB / 0.5648 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.434e-05/0.6218, allocations: 46.48 kB / 0.5648 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.122e-05/0.6218, allocations: 7.344 kB / 0.5648 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.622, allocations: 174.1 kB / 0.565 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.622, allocations: 0 / 0.565 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.121e-05/0.6221, allocations: 4 kB / 0.565 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001643/0.6222, allocations: 53.67 kB / 0.5651 GB, free: 14.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.6223, allocations: 3.906 kB / 0.5651 GB, free: 14.21 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.6223, allocations: 13.03 kB / 0.5651 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.6223, allocations: 0 / 0.5651 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001052/0.6224, allocations: 28.58 kB / 0.5651 GB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002369/0.6227, allocations: 169.6 kB / 0.5653 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003127/0.623, allocations: 54.56 kB / 0.5653 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003849/0.6234, allocations: 113.1 kB / 0.5654 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.6235, allocations: 34.56 kB / 0.5655 GB, free: 13.72 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 2.174e-06/0.6235, allocations: 3.375 kB / 0.5655 GB, free: 13.72 MB / 394.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.261/0.8845, allocations: 6.309 MB / 0.5716 GB, free: 7.383 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/0.8846, allocations: 59.34 kB / 0.5717 GB, free: 7.312 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.412e-05/0.8847, allocations: 93 kB / 0.5718 GB, free: 7.215 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.542e-05/0.8848, allocations: 29.7 kB / 0.5718 GB, free: 7.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.437e-05/0.8849, allocations: 154.5 kB / 0.572 GB, free: 7.027 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.885, allocations: 67 kB / 0.572 GB, free: 6.961 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.858e-05/0.8851, allocations: 7.938 kB / 0.572 GB, free: 6.953 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.8852, allocations: 322.8 kB / 0.5723 GB, free: 6.629 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.8864, allocations: 243.8 kB / 0.5726 GB, free: 6.391 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.8874, allocations: 243.8 kB / 0.5728 GB, free: 6.152 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002143/0.8896, allocations: 295.8 kB / 0.5731 GB, free: 5.863 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.8896, allocations: 0 / 0.5731 GB, free: 5.863 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00361/0.8933, allocations: 0.6348 MB / 0.5737 GB, free: 5.223 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.8933, allocations: 8 kB / 0.5737 GB, free: 5.215 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.8933, allocations: 0 / 0.5737 GB, free: 5.215 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.8934, allocations: 4 kB / 0.5737 GB, free: 5.211 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.8947, allocations: 115.8 kB / 0.5738 GB, free: 5.098 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.8948, allocations: 0 / 0.5738 GB, free: 5.098 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009428/0.8957, allocations: 39.92 kB / 0.5739 GB, free: 5.059 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.8959, allocations: 33.56 kB / 0.5739 GB, free: 5.027 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 0.0002451/0.8962, allocations: 121.8 kB / 0.574 GB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.019e-05/0.8963, allocations: 7.906 kB / 0.574 GB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004297/0.9006, allocations: 0.7605 MB / 0.5748 GB, free: 4.125 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.9006, allocations: 4 kB / 0.5748 GB, free: 4.121 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.9006, allocations: 0 / 0.5748 GB, free: 4.121 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.9007, allocations: 7.969 kB / 0.5748 GB, free: 4.113 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008119/0.9088, allocations: 1.217 MB / 0.576 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/0.9088, allocations: 7.953 kB / 0.576 GB, free: 2.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.91, allocations: 112.9 kB / 0.5761 GB, free: 2.711 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-05/0.91, allocations: 4 kB / 0.5761 GB, free: 2.707 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.139e-05/0.9101, allocations: 23.95 kB / 0.5761 GB, free: 2.684 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.916e-05/0.9101, allocations: 11.27 kB / 0.5761 GB, free: 2.676 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.9101, allocations: 0 / 0.5761 GB, free: 2.676 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003467/0.9136, allocations: 0.6824 MB / 0.5768 GB, free: 1.926 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.216e-05/0.9138, allocations: 89 kB / 0.5769 GB, free: 1.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.252e-05/0.9139, allocations: 8.203 kB / 0.5769 GB, free: 1.812 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008378/0.9147, allocations: 43.91 kB / 0.5769 GB, free: 1.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.208e-05/0.9148, allocations: 19.92 kB / 0.5769 GB, free: 1.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.782e-05/0.9149, allocations: 31.89 kB / 0.577 GB, free: 1.719 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.997e-05/0.915, allocations: 83.27 kB / 0.577 GB, free: 1.637 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.915, allocations: 0 / 0.577 GB, free: 1.637 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00252/0.9175, allocations: 0.6286 MB / 0.5777 GB, free: 1.008 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 19 * 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.008939/0.9265, allocations: 1.874 MB / 0.5795 GB, free: 15.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002447/0.929, allocations: 479.2 kB / 0.5799 GB, free: 14.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/0.9291, allocations: 8 kB / 0.5799 GB, free: 14.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.9302, allocations: 212.1 kB / 0.5801 GB, free: 14.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.9304, allocations: 12 kB / 0.5802 GB, free: 14.37 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006395/0.9368, allocations: 0.7519 MB / 0.5809 GB, free: 13.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.9373, allocations: 0.7006 MB / 0.5816 GB, free: 12.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006043/0.9379, allocations: 95.28 kB / 0.5817 GB, free: 12.74 MB / 410.7 MB Notification: Performance of SimCode: time 1.282e-06/0.9379, allocations: 7.938 kB / 0.5817 GB, free: 12.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.258/4.196, allocations: 17.71 MB / 0.599 GB, free: 11.01 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat does not exist to compare? outputFormat=mat