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.002195/0.002199, allocations: 182.8 kB / 16.4 MB, free: 5.75 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.04/2.04, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001203/0.001202, allocations: 91.39 kB / 270.9 MB, free: 8.379 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.5139/0.5139, allocations: 43.55 MB / 362.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005991/0.0005993, allocations: 8 kB / 431.5 MB, free: 5.848 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1392, allocations: 58.85 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0008145/0.1401, allocations: 268.4 kB / 490.6 MB, free: 10.65 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009354/0.141, allocations: 378.2 kB / 490.9 MB, free: 10.28 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.192e-05/0.1411, allocations: 0 / 490.9 MB, free: 10.28 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.1411, allocations: 4 kB / 490.9 MB, free: 10.27 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.802e-05/0.1412, allocations: 7.984 kB / 491 MB, free: 10.27 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005103/0.1417, allocations: 95.7 kB / 491 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.401e-05/0.1417, allocations: 15.97 kB / 491.1 MB, free: 10.16 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.506e-05/0.1418, allocations: 11.94 kB / 491.1 MB, free: 10.14 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.158e-05/0.1418, allocations: 11.94 kB / 491.1 MB, free: 10.13 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.076e-05/0.1419, allocations: 19.86 kB / 491.1 MB, free: 10.11 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.1419, allocations: 4 kB / 491.1 MB, free: 10.11 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003386/0.1423, allocations: 147.8 kB / 491.3 MB, free: 9.965 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.686e-05/0.1423, allocations: 7.922 kB / 491.3 MB, free: 9.957 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.457e-05/0.1424, allocations: 37.69 kB / 491.3 MB, free: 9.914 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002009/0.1426, allocations: 67.91 kB / 491.4 MB, free: 9.848 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.1426, allocations: 0 / 491.4 MB, free: 9.848 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1426, allocations: 0 / 491.4 MB, free: 9.848 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1426, allocations: 0 / 491.4 MB, free: 9.848 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004735/0.1431, allocations: 363.5 kB / 491.7 MB, free: 9.445 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.1432, allocations: 8.031 kB / 491.7 MB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.679e-05/0.1432, allocations: 34.56 kB / 491.8 MB, free: 9.395 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.994e-05/0.1433, allocations: 11.86 kB / 491.8 MB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001463/0.1434, allocations: 171 kB / 491.9 MB, free: 9.176 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.1434, allocations: 3.938 kB / 491.9 MB, free: 9.172 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.891e-05/0.1435, allocations: 4 kB / 491.9 MB, free: 9.168 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.1436, allocations: 49.69 kB / 492 MB, free: 9.113 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.1437, allocations: 3.984 kB / 492 MB, free: 9.109 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.1437, allocations: 8 kB / 492 MB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.1437, allocations: 0 / 492 MB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001358/0.1438, allocations: 27.94 kB / 492 MB, free: 9.074 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002354/0.1441, allocations: 177.5 kB / 492.2 MB, free: 8.852 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.1444, allocations: 54.55 kB / 492.3 MB, free: 8.789 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004378/0.1449, allocations: 121.1 kB / 492.4 MB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.1449, allocations: 38.5 kB / 492.4 MB, free: 8.605 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 3.587e-06/0.1449, allocations: 3.984 kB / 492.4 MB, free: 8.602 MB / 378.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.276/0.4209, allocations: 6.618 MB / 499 MB, free: 1.945 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.421, allocations: 55.39 kB / 499.1 MB, free: 1.879 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.4211, allocations: 105.9 kB / 499.2 MB, free: 1.766 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.989e-05/0.4212, allocations: 29.7 kB / 499.2 MB, free: 1.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.611e-05/0.4213, allocations: 150.6 kB / 499.4 MB, free: 1.582 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.4214, allocations: 70.94 kB / 499.4 MB, free: 1.512 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.102e-05/0.4215, allocations: 0 / 499.4 MB, free: 1.512 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.4216, allocations: 318.8 kB / 499.8 MB, free: 1.191 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001076/0.4227, allocations: 243.8 kB / 500 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001064/0.4238, allocations: 247.8 kB / 0.4885 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002114/0.4259, allocations: 295.8 kB / 0.4888 GB, free: 432 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.426, allocations: 0 / 0.4888 GB, free: 432 kB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.3619/0.7879, allocations: 0.6286 MB / 0.4894 GB, free: 41.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/0.788, allocations: 6.406 kB / 0.4894 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.788, allocations: 0 / 0.4894 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/0.7881, allocations: 3.766 kB / 0.4894 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.7894, allocations: 119.6 kB / 0.4895 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.7894, allocations: 4.969 kB / 0.4895 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009037/0.7903, allocations: 32.52 kB / 0.4896 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/0.7905, allocations: 32.72 kB / 0.4896 GB, free: 41.71 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 () * 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.0001921/0.7907, allocations: 117.5 kB / 0.4897 GB, free: 41.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.475e-05/0.7908, allocations: 7.188 kB / 0.4897 GB, free: 41.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004024/0.7948, allocations: 0.7595 MB / 0.4905 GB, free: 41.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.7948, allocations: 8.125 kB / 0.4905 GB, free: 41.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.7949, allocations: 0 / 0.4905 GB, free: 41.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.7949, allocations: 2.578 kB / 0.4905 GB, free: 41.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007614/0.8025, allocations: 1.219 MB / 0.4917 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.8025, allocations: 6 kB / 0.4917 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.8037, allocations: 109.6 kB / 0.4918 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/0.8037, allocations: 3.25 kB / 0.4918 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.798e-05/0.8038, allocations: 30.7 kB / 0.4918 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.265e-06/0.8038, allocations: 3.453 kB / 0.4918 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.8038, allocations: 2.188 kB / 0.4918 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003211/0.807, allocations: 0.6805 MB / 0.4925 GB, free: 40.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.043e-05/0.8071, allocations: 87.09 kB / 0.4926 GB, free: 40.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.878e-05/0.8072, allocations: 9.734 kB / 0.4926 GB, free: 40.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000861/0.8081, allocations: 36.83 kB / 0.4926 GB, free: 40.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.217e-05/0.8081, allocations: 15.17 kB / 0.4926 GB, free: 40.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.73e-05/0.8083, allocations: 29.62 kB / 0.4926 GB, free: 40.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.53e-05/0.8083, allocations: 85.66 kB / 0.4927 GB, free: 40.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8083, allocations: 0 / 0.4927 GB, free: 40.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002595/0.8109, allocations: 0.6437 MB / 0.4934 GB, free: 40.71 MB / 378.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.008406/0.8194, allocations: 1.833 MB / 0.4951 GB, free: 39.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002252/0.8217, allocations: 489.2 kB / 0.4956 GB, free: 39.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.8217, allocations: 0 / 0.4956 GB, free: 39.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009857/0.8227, allocations: 219.7 kB / 0.4958 GB, free: 39.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.823, allocations: 17.48 kB / 0.4958 GB, free: 39.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005935/0.8289, allocations: 0.7024 MB / 0.4965 GB, free: 39.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001627/0.8291, allocations: 0.7 MB / 0.4972 GB, free: 38.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005704/0.8297, allocations: 101.1 kB / 0.4973 GB, free: 38.45 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.8297, allocations: 0 / 0.4973 GB, free: 38.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.249/4.079, allocations: 19.36 MB / 0.5162 GB, free: 35.1 MB / 378.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