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.0009639/0.000964, allocations: 97.48 kB / 17 MB, free: 6.418 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.001119/0.001119, allocations: 189.4 kB / 17.89 MB, free: 5.945 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.408/1.408, allocations: 223.3 MB / 241.9 MB, free: 248 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.189/0.189, allocations: 44.22 MB / 337.2 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004951/0.0004952, allocations: 8.719 kB / 409.7 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1226, allocations: 61.91 MB / 471.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.000534/0.1232, allocations: 258.8 kB / 471.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006024/0.1238, allocations: 377 kB / 472.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.85e-05/0.1239, allocations: 0 / 472.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.217e-05/0.1239, allocations: 7.938 kB / 472.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.679e-05/0.1239, allocations: 4 kB / 472.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003364/0.1243, allocations: 99.75 kB / 472.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.014e-05/0.1243, allocations: 27.92 kB / 472.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.207e-05/0.1244, allocations: 0 / 472.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.966e-05/0.1244, allocations: 7.984 kB / 472.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.594e-05/0.1244, allocations: 19.92 kB / 472.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.1244, allocations: 0 / 472.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002259/0.1247, allocations: 155.8 kB / 472.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.057e-05/0.1247, allocations: 12 kB / 472.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.752e-05/0.1247, allocations: 29.64 kB / 472.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.1249, allocations: 83.81 kB / 472.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1249, allocations: 0 / 472.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1249, allocations: 0 / 472.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.1249, allocations: 0 / 472.7 MB, free: 12.56 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.0003933/0.1253, allocations: 361.8 kB / 473.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.1253, allocations: 8.031 kB / 473.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.78e-05/0.1254, allocations: 34.56 kB / 473.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.222e-05/0.1254, allocations: 12 kB / 473.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.1255, allocations: 170.9 kB / 473.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.1256, allocations: 3.953 kB / 473.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.1256, allocations: 8 kB / 473.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001287/0.1257, allocations: 53.61 kB / 473.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1257, allocations: 0 / 473.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.1258, allocations: 4 kB / 473.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.1258, allocations: 4 kB / 473.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.523e-05/0.1258, allocations: 23.98 kB / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001824/0.126, allocations: 173.6 kB / 473.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.1262, allocations: 58.53 kB / 473.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.175e-05/0.1263, allocations: 32.8 kB / 473.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002868/0.1266, allocations: 121.1 kB / 473.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.1266, allocations: 30.56 kB / 473.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/0.1266, allocations: 0 / 473.8 MB, free: 11.3 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.1383/0.2649, allocations: 6.617 MB / 480.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.265, allocations: 51.41 kB / 480.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.001e-05/0.265, allocations: 101.9 kB / 480.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.369e-05/0.2651, allocations: 25.7 kB / 480.6 MB, free: 4.438 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.321e-05/0.2651, allocations: 92.12 kB / 480.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.931e-05/0.2652, allocations: 63.09 kB / 480.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.481e-05/0.2653, allocations: 0 / 480.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.2654, allocations: 318.8 kB / 481 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005401/0.2659, allocations: 247.8 kB / 481.3 MB, free: 3.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005196/0.2664, allocations: 251.8 kB / 481.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.2675, allocations: 298.6 kB / 481.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.2675, allocations: 0 / 481.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001779/0.2693, allocations: 0.6339 MB / 482.4 MB, free: 2.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.2693, allocations: 8 kB / 482.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2693, allocations: 0 / 482.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.2694, allocations: 4 kB / 482.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000644/0.27, allocations: 119.8 kB / 482.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.27, allocations: 3.984 kB / 482.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004227/0.2705, allocations: 31.97 kB / 482.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.667e-05/0.2705, allocations: 31.94 kB / 482.6 MB, free: 2.348 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.0001447/0.2707, allocations: 122.3 kB / 482.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.681e-05/0.2707, allocations: 7.906 kB / 482.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002181/0.2729, allocations: 0.7593 MB / 483.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.2729, allocations: 480 / 483.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.273, allocations: 0 / 483.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.273, allocations: 7.984 kB / 483.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003986/0.277, allocations: 1.238 MB / 484.8 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.277, allocations: 0 / 484.8 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005461/0.2775, allocations: 107.9 kB / 484.9 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.12e-05/0.2776, allocations: 11.98 kB / 484.9 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.498e-05/0.2776, allocations: 27.95 kB / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.124e-06/0.2777, allocations: 11.94 kB / 484.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.2777, allocations: 4 kB / 484.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.2793, allocations: 0.604 MB / 485.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.507e-05/0.2794, allocations: 85.02 kB / 485.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.869e-05/0.2795, allocations: 16.23 kB / 485.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003983/0.2799, allocations: 27.97 kB / 485.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.794e-05/0.2799, allocations: 23.94 kB / 485.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.888e-05/0.28, allocations: 27.95 kB / 485.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.404e-05/0.28, allocations: 87.27 kB / 485.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.28, allocations: 4 kB / 485.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001775/0.2818, allocations: 0.6406 MB / 486.4 MB, free: 14.4 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.00485/0.2867, allocations: 1.342 MB / 487.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.2878, allocations: 481.5 kB / 488.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2879, allocations: 0 / 488.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005224/0.2884, allocations: 220 kB / 488.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.2887, allocations: 15.95 kB / 488.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.2918, allocations: 0.6733 MB / 489.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.292, allocations: 0.7045 MB / 489.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005619/0.2926, allocations: 116.9 kB / 490 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003206/0.2929, allocations: 107.3 kB / 490.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.293, allocations: 0 / 490.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2639/0.5568, allocations: 57.89 MB / 0.5351 GB, free: 25.93 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001218/0.557, allocations: 206.3 kB / 0.5353 GB, free: 25.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.192/2.749, allocations: 0 / 0.5353 GB, free: 25.69 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