Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009983/0.0009984, allocations: 96.78 kB / 16.99 MB, free: 5.938 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.0009444/0.0009445, allocations: 181.3 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.2 MB / 241.8 MB, free: 388 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2207/0.2207, allocations: 44.23 MB / 337.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.0003155, allocations: 12.83 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1178, allocations: 61.92 MB / 471.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005934/0.1184, allocations: 258.8 kB / 471.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005967/0.119, allocations: 341 kB / 472.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.005e-05/0.119, allocations: 0 / 472.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.129e-05/0.1191, allocations: 3.938 kB / 472.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.04e-05/0.1191, allocations: 0 / 472.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.1194, allocations: 75.8 kB / 472.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.232e-05/0.1195, allocations: 23.91 kB / 472.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.281e-05/0.1195, allocations: 0 / 472.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.329e-05/0.1195, allocations: 11.98 kB / 472.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.458e-05/0.1196, allocations: 15.92 kB / 472.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.1196, allocations: 0 / 472.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.1198, allocations: 107.9 kB / 472.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.035e-05/0.1198, allocations: 3.938 kB / 472.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.553e-05/0.1198, allocations: 33.7 kB / 472.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.12, allocations: 63.84 kB / 472.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.12, allocations: 0 / 472.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.12, allocations: 4 kB / 472.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.12, allocations: 0 / 472.5 MB, free: 12.74 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.0003259/0.1203, allocations: 355.5 kB / 472.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1204, allocations: 8.031 kB / 472.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.851e-05/0.1204, allocations: 34.56 kB / 472.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.139e-05/0.1204, allocations: 4 kB / 472.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.1206, allocations: 182.8 kB / 473 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.1206, allocations: 3.938 kB / 473 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.1206, allocations: 7.953 kB / 473 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.1207, allocations: 53.69 kB / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1207, allocations: 0 / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-06/0.1207, allocations: 0 / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.1208, allocations: 4 kB / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.244e-05/0.1208, allocations: 35.91 kB / 473.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001665/0.121, allocations: 165.7 kB / 473.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001805/0.1212, allocations: 58.55 kB / 473.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002514/0.1214, allocations: 113.1 kB / 473.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.1215, allocations: 38.5 kB / 473.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.1215, allocations: 288 / 473.5 MB, free: 11.51 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.04102/0.1625, allocations: 2.822 MB / 476.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.1626, allocations: 59.34 kB / 476.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.246e-05/0.1627, allocations: 105.9 kB / 476.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.182e-05/0.1627, allocations: 29.7 kB / 476.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.757e-05/0.1628, allocations: 84.12 kB / 476.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.169e-05/0.1628, allocations: 59.11 kB / 476.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.466e-05/0.1629, allocations: 4 kB / 476.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.163, allocations: 318.8 kB / 477 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003982/0.1634, allocations: 187.9 kB / 477.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003651/0.1638, allocations: 194 kB / 477.3 MB, free: 7.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005138/0.1643, allocations: 219.9 kB / 477.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.1643, allocations: 4 kB / 477.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009986/0.1653, allocations: 487.9 kB / 478 MB, free: 6.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.1653, allocations: 6.5 kB / 478 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1653, allocations: 4 kB / 478.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.1654, allocations: 4 kB / 478.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.1657, allocations: 75.88 kB / 478.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.1658, allocations: 4 kB / 478.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.166, allocations: 32.22 kB / 478.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.166, allocations: 15.98 kB / 478.2 MB, free: 6.754 MB / 350.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.000126/0.1661, allocations: 118.4 kB / 478.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.672e-05/0.1662, allocations: 19.8 kB / 478.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001292/0.1675, allocations: 0.5644 MB / 478.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.1675, allocations: 4 kB / 478.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1675, allocations: 0 / 478.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1675, allocations: 3.984 kB / 478.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.1696, allocations: 0.9627 MB / 479.8 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1697, allocations: 0 / 479.8 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002909/0.17, allocations: 72.08 kB / 479.9 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-06/0.17, allocations: 8 kB / 479.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.045e-05/0.17, allocations: 19.98 kB / 479.9 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.17, allocations: 0 / 479.9 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.17, allocations: 4 kB / 480 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00094/0.171, allocations: 0.5537 MB / 480.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.171, allocations: 89 kB / 480.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/0.1711, allocations: 8 kB / 480.6 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.1713, allocations: 27.98 kB / 480.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.88e-05/0.1713, allocations: 19.88 kB / 480.6 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.1714, allocations: 23.92 kB / 480.7 MB, free: 4.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.452e-05/0.1714, allocations: 87.27 kB / 480.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1714, allocations: 0 / 480.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008858/0.1723, allocations: 308 kB / 481.1 MB, free: 3.703 MB / 350.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.002442/0.1748, allocations: 1.634 MB / 482.7 MB, free: 2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008078/0.1756, allocations: 363.7 kB / 483 MB, free: 1.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1756, allocations: 0 / 483 MB, free: 1.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000343/0.176, allocations: 172 kB / 483.2 MB, free: 1.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001701/0.1761, allocations: 11.95 kB / 483.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.1778, allocations: 0.5643 MB / 483.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.178, allocations: 0.6968 MB / 484.5 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003635/0.1784, allocations: 97.08 kB / 484.6 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002055/0.1786, allocations: 59.39 kB / 484.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1786, allocations: 0 / 484.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03035/0.209, allocations: 18.44 MB / 0.4913 GB, free: 13.69 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/0.2092, allocations: 197.2 kB / 0.4915 GB, free: 13.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/1.968, allocations: 6.578 kB / 0.4915 GB, free: 13.45 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat