Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00155/0.001549, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001653/0.001653, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2319/0.2319, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002348/0.002349, allocations: 76.61 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1247, allocations: 62.45 MB / 480.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.002189/0.1269, allocations: 0.5346 MB / 480.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008596/0.1278, allocations: 413.4 kB / 481.1 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.075e-05/0.1279, allocations: 0 / 481.1 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.47e-05/0.128, allocations: 3.938 kB / 481.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.533e-05/0.128, allocations: 0 / 481.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007289/0.1288, allocations: 139.5 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.59e-05/0.1288, allocations: 23.92 kB / 481.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.074e-05/0.1289, allocations: 4 kB / 481.3 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.891e-05/0.1289, allocations: 8 kB / 481.3 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.318e-05/0.129, allocations: 23.84 kB / 481.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.129, allocations: 4 kB / 481.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003742/0.1294, allocations: 159.8 kB / 481.5 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.269e-05/0.1295, allocations: 7.984 kB / 481.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.125e-05/0.1295, allocations: 19.88 kB / 481.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003439/0.1298, allocations: 124 kB / 481.7 MB, free: 3.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1299, allocations: 4 kB / 481.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1299, allocations: 0 / 481.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.1299, allocations: 0 / 481.7 MB, free: 3.695 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005675/0.1305, allocations: 363.5 kB / 482 MB, free: 3.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.1305, allocations: 8.031 kB / 482 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.584e-05/0.1306, allocations: 34.75 kB / 482.1 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.394e-05/0.1306, allocations: 4.875 kB / 482.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001695/0.1308, allocations: 180.2 kB / 482.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.1308, allocations: 384 / 482.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.1309, allocations: 8.375 kB / 482.2 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001391/0.131, allocations: 54 kB / 482.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.131, allocations: 0 / 482.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.006e-06/0.131, allocations: 0 / 482.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.131, allocations: 4 kB / 482.3 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.28e-05/0.1311, allocations: 35.91 kB / 482.3 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002016/0.1313, allocations: 165.6 kB / 482.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002112/0.1316, allocations: 58.55 kB / 482.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.125e-05/0.1316, allocations: 29.08 kB / 482.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003147/0.1319, allocations: 116.9 kB / 482.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.132, allocations: 38.5 kB / 482.7 MB, free: 2.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.132, allocations: 0 / 482.7 MB, free: 2.43 MB / 350.1 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.1441/0.2761, allocations: 6.381 MB / 489.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.2761, allocations: 55.41 kB / 489.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.2762, allocations: 101.9 kB / 489.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.001e-05/0.2763, allocations: 25.7 kB / 489.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.942e-05/0.2764, allocations: 88.12 kB / 489.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.2765, allocations: 63.05 kB / 489.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/0.2767, allocations: 85.59 kB / 489.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.2768, allocations: 322.8 kB / 489.8 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005874/0.2774, allocations: 231.8 kB / 490.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.278, allocations: 223.8 kB / 490.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/0.2803, allocations: 0.5616 MB / 490.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2803, allocations: 0 / 490.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001958/0.2823, allocations: 0.6104 MB / 491.5 MB, free: 9.617 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.2823, allocations: 8 kB / 491.5 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2823, allocations: 3.938 kB / 491.5 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.2823, allocations: 3.984 kB / 491.5 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006675/0.283, allocations: 107.8 kB / 491.6 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.283, allocations: 0 / 491.6 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004368/0.2835, allocations: 27.95 kB / 491.6 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-05/0.2835, allocations: 31.94 kB / 491.6 MB, free: 9.438 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.2837, allocations: 129.7 kB / 491.8 MB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.367e-05/0.2838, allocations: 7.906 kB / 491.8 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/0.2861, allocations: 0.7223 MB / 492.5 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.2861, allocations: 0 / 492.5 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.2862, allocations: 7.938 kB / 492.5 MB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.2862, allocations: 4 kB / 492.5 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004234/0.2904, allocations: 1.161 MB / 493.7 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.2904, allocations: 480 / 493.7 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005437/0.291, allocations: 96.11 kB / 493.8 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.291, allocations: 0 / 493.8 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.532e-05/0.2911, allocations: 39.89 kB / 493.8 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2911, allocations: 0 / 493.8 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.2911, allocations: 11.92 kB / 493.8 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.2929, allocations: 0.5861 MB / 494.4 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.475e-05/0.293, allocations: 85.02 kB / 494.5 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.711e-05/0.293, allocations: 0 / 494.5 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004128/0.2934, allocations: 31.95 kB / 494.5 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.347e-05/0.2935, allocations: 11.98 kB / 494.5 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.818e-05/0.2936, allocations: 35.95 kB / 494.6 MB, free: 6.375 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.41e-05/0.2937, allocations: 83.22 kB / 494.6 MB, free: 6.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2937, allocations: 0 / 494.6 MB, free: 6.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00183/0.2955, allocations: 0.6445 MB / 495.3 MB, free: 5.648 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005521/0.3011, allocations: 1.306 MB / 496.6 MB, free: 4.293 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.3024, allocations: 457.6 kB / 497 MB, free: 3.848 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.3024, allocations: 0 / 497 MB, free: 3.848 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005585/0.303, allocations: 203.7 kB / 497.2 MB, free: 3.648 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.3033, allocations: 12 kB / 497.2 MB, free: 3.637 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003482/0.3068, allocations: 0.6243 MB / 497.9 MB, free: 2.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.3071, allocations: 0.6965 MB / 498.6 MB, free: 2.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005461/0.3077, allocations: 116.9 kB / 498.7 MB, free: 2.117 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003295/0.308, allocations: 103.3 kB / 498.8 MB, free: 2.016 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.308, allocations: 4 kB / 498.8 MB, free: 2.012 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2726/0.5806, allocations: 58.54 MB / 0.5443 GB, free: 12.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.326/8.907, allocations: 7.812 kB / 0.5443 GB, free: 12.96 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1)