Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",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.001075/0.001075, allocations: 96.31 kB / 16.98 MB, free: 6.398 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.001259/0.001259, allocations: 184 kB / 17.87 MB, free: 5.957 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.384/1.384, allocations: 223.2 MB / 241.8 MB, free: 14.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2116/0.2116, allocations: 44.22 MB / 337.1 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000315/0.000315, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1417, allocations: 61.92 MB / 471.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0006709/0.1424, allocations: 258.8 kB / 471.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007568/0.1432, allocations: 381.3 kB / 472.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.537e-05/0.1432, allocations: 0 / 472.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.631e-05/0.1433, allocations: 7.938 kB / 472.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.795e-05/0.1433, allocations: 0 / 472.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.1437, allocations: 95.69 kB / 472.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.297e-05/0.1438, allocations: 16 kB / 472.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.757e-05/0.1438, allocations: 7.984 kB / 472.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.426e-05/0.1439, allocations: 7.938 kB / 472.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.184e-05/0.1439, allocations: 19.91 kB / 472.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.144, allocations: 4 kB / 472.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002514/0.1442, allocations: 147.8 kB / 472.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.334e-05/0.1442, allocations: 7.938 kB / 472.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.912e-05/0.1443, allocations: 29.7 kB / 472.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.1444, allocations: 79.88 kB / 472.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1444, allocations: 0 / 472.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1444, allocations: 4 kB / 472.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.1444, allocations: 0 / 472.6 MB, free: 12.59 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.0004525/0.1449, allocations: 359.5 kB / 472.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.145, allocations: 8.031 kB / 472.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.478e-05/0.145, allocations: 34.56 kB / 473 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.216e-05/0.145, allocations: 7.938 kB / 473 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.1452, allocations: 178.9 kB / 473.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.1452, allocations: 3.953 kB / 473.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.473e-05/0.1453, allocations: 8 kB / 473.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.1454, allocations: 57.67 kB / 473.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.1454, allocations: 0 / 473.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.1455, allocations: 0 / 473.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.1455, allocations: 0 / 473.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.943e-05/0.1456, allocations: 27.92 kB / 473.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002198/0.1458, allocations: 169.7 kB / 473.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002112/0.146, allocations: 54.5 kB / 473.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002978/0.1463, allocations: 129 kB / 473.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/0.1464, allocations: 34.78 kB / 473.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.182e-06/0.1464, allocations: 0 / 473.6 MB, free: 11.36 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.1352/0.2816, allocations: 6.608 MB / 480.2 MB, free: 4.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.2816, allocations: 59.41 kB / 480.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.495e-05/0.2817, allocations: 105.8 kB / 480.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.93e-05/0.2818, allocations: 29.7 kB / 480.4 MB, free: 4.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.254e-05/0.2818, allocations: 84.08 kB / 480.5 MB, free: 4.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.513e-05/0.2819, allocations: 59.11 kB / 480.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.282, allocations: 4 kB / 480.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2821, allocations: 322.8 kB / 480.9 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005359/0.2827, allocations: 239.8 kB / 481.1 MB, free: 3.781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005176/0.2832, allocations: 246.1 kB / 481.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009987/0.2842, allocations: 299.8 kB / 481.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2842, allocations: 0 / 481.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001725/0.2859, allocations: 0.6445 MB / 482.3 MB, free: 2.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.286, allocations: 4 kB / 482.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.286, allocations: 0 / 482.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.286, allocations: 7.938 kB / 482.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00062/0.2866, allocations: 111.8 kB / 482.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.2867, allocations: 0 / 482.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004142/0.2871, allocations: 39.95 kB / 482.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.833e-05/0.2871, allocations: 31.94 kB / 482.5 MB, free: 2.41 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.0001596/0.2873, allocations: 126.3 kB / 482.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.693e-05/0.2874, allocations: 11.89 kB / 482.6 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/0.2895, allocations: 0.7516 MB / 483.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.2895, allocations: 4 kB / 483.4 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2895, allocations: 0 / 483.4 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2895, allocations: 480 / 483.4 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003885/0.2934, allocations: 1.235 MB / 484.6 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.2934, allocations: 7.984 kB / 484.6 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005086/0.294, allocations: 108 kB / 484.7 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.294, allocations: 4 kB / 484.7 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.68e-05/0.294, allocations: 31.89 kB / 484.8 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.294, allocations: 4 kB / 484.8 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.294, allocations: 7.891 kB / 484.8 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.2957, allocations: 0.6742 MB / 485.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.098e-05/0.2958, allocations: 88.95 kB / 485.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.501e-05/0.2958, allocations: 8 kB / 485.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003903/0.2962, allocations: 35.95 kB / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.5e-05/0.2963, allocations: 23.88 kB / 485.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.016e-05/0.2963, allocations: 28.2 kB / 485.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.135e-05/0.2964, allocations: 87.28 kB / 485.7 MB, free: 15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2964, allocations: 4 kB / 485.7 MB, free: 15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002054/0.2984, allocations: 0.6406 MB / 486.4 MB, free: 14.36 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 (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.005167/0.3036, allocations: 1.829 MB / 488.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001167/0.3048, allocations: 479.5 kB / 488.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3048, allocations: 0 / 488.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005205/0.3053, allocations: 216.1 kB / 488.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.3056, allocations: 15.98 kB / 488.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.3087, allocations: 0.6726 MB / 489.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/0.309, allocations: 0.7007 MB / 490.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005341/0.3095, allocations: 124.9 kB / 490.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003083/0.3099, allocations: 103.2 kB / 490.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3099, allocations: 0 / 490.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3409/0.6508, allocations: 57.89 MB / 0.5355 GB, free: 25.71 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001985/0.651, allocations: 187 kB / 0.5357 GB, free: 25.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/2.875, allocations: 0 / 0.5357 GB, free: 25.48 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat does not exist to compare? outputFormat=mat