Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008134/0.0008138, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000885/0.0008851, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.253/1.253, allocations: 205.4 MB / 222.1 MB, free: 5.887 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2641/0.2641, allocations: 38.03 MB / 308.4 MB, free: 10.27 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005723/0.0005724, allocations: 20 kB / 376.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0979/0.09848, allocations: 57.51 MB / 434 MB, free: 5.543 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0006116/0.09913, allocations: 270 kB / 434.2 MB, free: 5.281 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005799/0.09973, allocations: 348.7 kB / 434.6 MB, free: 4.941 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.266e-05/0.09978, allocations: 0 / 434.6 MB, free: 4.941 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 9.458e-06/0.0998, allocations: 0 / 434.6 MB, free: 4.941 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 3.412e-05/0.09984, allocations: 3.938 kB / 434.6 MB, free: 4.938 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003528/0.1002, allocations: 75.84 kB / 434.6 MB, free: 4.863 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.299e-05/0.1003, allocations: 31.86 kB / 434.7 MB, free: 4.832 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.188e-05/0.1003, allocations: 0 / 434.7 MB, free: 4.832 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.203e-05/0.1003, allocations: 11.94 kB / 434.7 MB, free: 4.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.169e-05/0.1004, allocations: 15.92 kB / 434.7 MB, free: 4.805 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.1004, allocations: 0 / 434.7 MB, free: 4.805 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001885/0.1006, allocations: 115.9 kB / 434.8 MB, free: 4.691 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.798e-06/0.1006, allocations: 0 / 434.8 MB, free: 4.691 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.584e-05/0.1007, allocations: 37.64 kB / 434.8 MB, free: 4.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001217/0.1008, allocations: 60.19 kB / 434.9 MB, free: 4.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1008, allocations: 4 kB / 434.9 MB, free: 4.586 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1008, allocations: 0 / 434.9 MB, free: 4.586 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.317e-06/0.1008, allocations: 0 / 434.9 MB, free: 4.586 MB / 366.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.0003367/0.1012, allocations: 355.2 kB / 435.3 MB, free: 4.191 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.1012, allocations: 12.03 kB / 435.3 MB, free: 4.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.831e-05/0.1012, allocations: 3.906 kB / 435.3 MB, free: 4.176 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.1013, allocations: 175 kB / 435.4 MB, free: 3.965 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.1014, allocations: 3.938 kB / 435.4 MB, free: 3.961 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.995e-05/0.1014, allocations: 8 kB / 435.5 MB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.1015, allocations: 61.61 kB / 435.5 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.1015, allocations: 0 / 435.5 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.015e-06/0.1015, allocations: 0 / 435.5 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1015, allocations: 4 kB / 435.5 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.706e-05/0.1016, allocations: 23.98 kB / 435.5 MB, free: 3.859 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.1018, allocations: 169.6 kB / 435.7 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.102, allocations: 54.59 kB / 435.8 MB, free: 3.582 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.073e-05/0.102, allocations: 32.84 kB / 435.8 MB, free: 3.547 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002259/0.1022, allocations: 117.1 kB / 435.9 MB, free: 3.414 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.1023, allocations: 30.56 kB / 435.9 MB, free: 3.375 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.032e-06/0.1023, allocations: 0 / 435.9 MB, free: 3.375 MB / 366.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.03427/0.1365, allocations: 2.822 MB / 438.8 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/0.1366, allocations: 59.41 kB / 438.8 MB, free: 456 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.467e-05/0.1367, allocations: 101.8 kB / 438.9 MB, free: 344 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.209e-05/0.1368, allocations: 33.7 kB / 438.9 MB, free: 304 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.141e-05/0.1368, allocations: 80.14 kB / 439 MB, free: 220 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.341e-05/0.1369, allocations: 59.11 kB / 439.1 MB, free: 160 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.326e-05/0.1369, allocations: 4 kB / 439.1 MB, free: 156 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.137, allocations: 322.8 kB / 439.4 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000352/0.1374, allocations: 187.9 kB / 439.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003434/0.1377, allocations: 195.8 kB / 439.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004739/0.1382, allocations: 215.9 kB / 440 MB, free: 15.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1382, allocations: 4 kB / 440 MB, free: 15.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001009/0.1392, allocations: 492.8 kB / 440.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1393, allocations: 4 kB / 440.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1393, allocations: 0 / 440.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.1393, allocations: 4 kB / 440.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003339/0.1396, allocations: 75.88 kB / 440.6 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.1397, allocations: 4 kB / 440.6 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.1398, allocations: 35.91 kB / 440.6 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/0.1399, allocations: 19.94 kB / 440.6 MB, free: 14.61 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.14, allocations: 122.9 kB / 440.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.886e-05/0.14, allocations: 7.906 kB / 440.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/0.1412, allocations: 0.5721 MB / 441.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1413, allocations: 4 kB / 441.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1413, allocations: 0 / 441.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1413, allocations: 0 / 441.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001963/0.1432, allocations: 0.9593 MB / 442.3 MB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1433, allocations: 0 / 442.3 MB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002753/0.1435, allocations: 84.02 kB / 442.4 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.1436, allocations: 4 kB / 442.4 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.1436, allocations: 16 kB / 442.4 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.1436, allocations: 4.453 kB / 442.4 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1436, allocations: 4 kB / 442.4 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008429/0.1445, allocations: 492.3 kB / 442.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.1445, allocations: 89.02 kB / 443 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.519e-05/0.1446, allocations: 4.25 kB / 443 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.1448, allocations: 39.86 kB / 443 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.775e-05/0.1448, allocations: 19.97 kB / 443 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/0.1448, allocations: 20 kB / 443 MB, free: 12.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.771e-05/0.1449, allocations: 83.27 kB / 443.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1449, allocations: 0 / 443.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008599/0.1457, allocations: 312 kB / 443.4 MB, free: 11.65 MB / 382.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 (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.00129/0.147, allocations: 239 kB / 443.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007286/0.1478, allocations: 375.3 kB / 444 MB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1478, allocations: 0 / 444 MB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003234/0.1481, allocations: 164.2 kB / 444.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.1484, allocations: 15.94 kB / 444.2 MB, free: 10.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.1495, allocations: 476.4 kB / 444.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.1497, allocations: 0.6968 MB / 445.4 MB, free: 9.633 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003427/0.1501, allocations: 96.88 kB / 445.5 MB, free: 9.535 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.1503, allocations: 51.41 kB / 445.5 MB, free: 9.484 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1503, allocations: 0 / 445.5 MB, free: 9.484 MB / 382.1 MB Notification: Performance of Templates: time 0.191/0.3413, allocations: 17.47 MB / 463 MB, free: 46.51 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) Environment - environmentSimulation: