Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001329/0.001328, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.8 MB, free: 10.48 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.2459/0.2459, allocations: 46.11 MB / 344.2 MB, free: 11.51 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.002294/0.002294, allocations: 81.31 kB / 417.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1144, allocations: 62.44 MB / 480.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001972/0.1164, allocations: 0.5385 MB / 480.7 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007161/0.1171, allocations: 377.4 kB / 481.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.518e-05/0.1172, allocations: 0 / 481.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.115e-05/0.1172, allocations: 0 / 481.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.187e-05/0.1172, allocations: 3.938 kB / 481.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000395/0.1176, allocations: 103.6 kB / 481.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.156e-05/0.1177, allocations: 19.98 kB / 481.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.233e-05/0.1177, allocations: 4 kB / 481.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.808e-05/0.1178, allocations: 15.92 kB / 481.3 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.998e-05/0.1178, allocations: 23.84 kB / 481.3 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.213e-05/0.1179, allocations: 0 / 481.3 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002275/0.1181, allocations: 119.9 kB / 481.4 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.933e-05/0.1181, allocations: 11.94 kB / 481.4 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.223e-05/0.1181, allocations: 11.92 kB / 481.4 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.1183, allocations: 99.97 kB / 481.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.1183, allocations: 0 / 481.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.1183, allocations: 0 / 481.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1184, allocations: 0 / 481.5 MB, free: 3.777 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.0004793/0.1188, allocations: 367.4 kB / 481.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.1189, allocations: 8.031 kB / 481.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.991e-05/0.1189, allocations: 38.73 kB / 481.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.56e-05/0.119, allocations: 4.844 kB / 481.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001461/0.1191, allocations: 172.3 kB / 482.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.1191, allocations: 4.375 kB / 482.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.1192, allocations: 4.375 kB / 482.1 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.1193, allocations: 58.17 kB / 482.2 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.1193, allocations: 7.938 kB / 482.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.1193, allocations: 0 / 482.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.1193, allocations: 0 / 482.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.895e-05/0.1194, allocations: 27.98 kB / 482.2 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002097/0.1196, allocations: 173.5 kB / 482.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002161/0.1199, allocations: 62.59 kB / 482.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.018e-05/0.1199, allocations: 24.84 kB / 482.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002652/0.1202, allocations: 113 kB / 482.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.1202, allocations: 30.56 kB / 482.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.213e-06/0.1202, allocations: 4 kB / 482.6 MB, free: 2.508 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.04309/0.1633, allocations: 2.581 MB / 485.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.1634, allocations: 55.41 kB / 485.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.572e-05/0.1635, allocations: 97.86 kB / 485.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.1635, allocations: 29.7 kB / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.947e-05/0.1636, allocations: 88.12 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.148e-05/0.1637, allocations: 63.02 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/0.1638, allocations: 53.69 kB / 485.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.164, allocations: 322.8 kB / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003945/0.1644, allocations: 175.9 kB / 486 MB, free: 14.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000394/0.1648, allocations: 179.8 kB / 486.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.1659, allocations: 415.3 kB / 486.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1659, allocations: 0 / 486.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001069/0.167, allocations: 461.3 kB / 487.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.167, allocations: 8 kB / 487.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.167, allocations: 0 / 487.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.167, allocations: 4 kB / 487.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003782/0.1674, allocations: 67.88 kB / 487.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.1674, allocations: 4 kB / 487.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.1676, allocations: 15.98 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.1677, allocations: 15.98 kB / 487.2 MB, free: 13.83 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.0001352/0.1678, allocations: 129.7 kB / 487.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.623e-05/0.1679, allocations: 11.89 kB / 487.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001314/0.1692, allocations: 0.5428 MB / 487.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1692, allocations: 0 / 487.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1692, allocations: 256 / 487.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1692, allocations: 4 kB / 487.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.1714, allocations: 0.8783 MB / 488.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1715, allocations: 4.031 kB / 488.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002893/0.1718, allocations: 71.88 kB / 488.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.463e-06/0.1718, allocations: 4 kB / 488.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/0.1718, allocations: 11.98 kB / 488.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.1718, allocations: 7.938 kB / 488.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.1718, allocations: 0 / 488.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.1729, allocations: 472.2 kB / 489.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.173, allocations: 89.02 kB / 489.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.016e-05/0.173, allocations: 7.984 kB / 489.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.1732, allocations: 15.98 kB / 489.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.806e-05/0.1732, allocations: 11.98 kB / 489.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.408e-05/0.1733, allocations: 23.98 kB / 489.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.721e-05/0.1733, allocations: 87.22 kB / 489.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1733, allocations: 0 / 489.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008623/0.1742, allocations: 319.9 kB / 489.8 MB, free: 11.03 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.002693/0.1769, allocations: 1.109 MB / 491 MB, free: 9.875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008369/0.1778, allocations: 347.7 kB / 491.3 MB, free: 9.535 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.1778, allocations: 0 / 491.3 MB, free: 9.535 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003526/0.1781, allocations: 148.2 kB / 491.4 MB, free: 9.391 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.1784, allocations: 15.98 kB / 491.5 MB, free: 9.375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.1802, allocations: 0.4921 MB / 491.9 MB, free: 8.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.1805, allocations: 0.6926 MB / 492.6 MB, free: 8.098 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003781/0.1809, allocations: 96.88 kB / 492.7 MB, free: 8.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002015/0.1811, allocations: 59.41 kB / 492.8 MB, free: 7.945 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1811, allocations: 0 / 492.8 MB, free: 7.945 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04383/0.225, allocations: 18.94 MB / 0.4997 GB, free: 5.145 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.914/8.139, allocations: 7.859 kB / 0.4997 GB, free: 5.137 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1)