Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001349/0.001349, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002218/0.002218, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 247 MB, free: 10.43 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.2364/0.2364, allocations: 46.13 MB / 344.4 MB, free: 11.44 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.002298/0.002298, allocations: 79.86 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.372, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.002282/0.3743, allocations: 0.5348 MB / 0.5311 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.3755, allocations: 400.5 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.537e-05/0.3756, allocations: 1.75 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.508e-05/0.3756, allocations: 3.938 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.37e-05/0.3756, allocations: 3.938 kB / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007009/0.3763, allocations: 135.5 kB / 0.5316 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.152e-05/0.3764, allocations: 25.92 kB / 0.5317 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.635e-05/0.3765, allocations: 9.953 kB / 0.5317 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.057e-05/0.3766, allocations: 8.125 kB / 0.5317 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.74e-05/0.3766, allocations: 26.19 kB / 0.5317 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.418e-05/0.3767, allocations: 2.875 kB / 0.5317 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003776/0.3771, allocations: 159.3 kB / 0.5319 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.731e-05/0.3771, allocations: 3.984 kB / 0.5319 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.596e-05/0.3771, allocations: 18.97 kB / 0.5319 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003098/0.3774, allocations: 124.2 kB / 0.532 GB, free: 12.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3775, allocations: 0 / 0.532 GB, free: 12.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3775, allocations: 0 / 0.532 GB, free: 12.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.3775, allocations: 4 kB / 0.532 GB, free: 12.34 MB / 398.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.0006575/0.3782, allocations: 371.1 kB / 0.5324 GB, free: 11.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.3782, allocations: 8.594 kB / 0.5324 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.859e-05/0.3783, allocations: 40.44 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.385e-05/0.3783, allocations: 3.719 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.3786, allocations: 166.8 kB / 0.5326 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.3786, allocations: 5.969 kB / 0.5326 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.099e-05/0.3787, allocations: 6.703 kB / 0.5326 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.3789, allocations: 59.08 kB / 0.5326 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.3789, allocations: 5.094 kB / 0.5326 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.3789, allocations: 0 / 0.5326 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.3789, allocations: 5.344 kB / 0.5326 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.379, allocations: 28.67 kB / 0.5327 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002704/0.3793, allocations: 174.5 kB / 0.5328 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.3796, allocations: 60.52 kB / 0.5329 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.333e-05/0.3797, allocations: 25.39 kB / 0.5329 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003771/0.3801, allocations: 109.5 kB / 0.533 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.793e-05/0.3802, allocations: 39.5 kB / 0.5331 GB, free: 11.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 2.044e-06/0.3802, allocations: 1.125 kB / 0.5331 GB, free: 11.2 MB / 398.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.1454/0.5256, allocations: 6.375 MB / 0.5393 GB, free: 7.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.5257, allocations: 52.69 kB / 0.5393 GB, free: 7.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.391e-05/0.5258, allocations: 104 kB / 0.5394 GB, free: 7.492 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.5e-05/0.5259, allocations: 30.83 kB / 0.5395 GB, free: 7.457 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.083e-05/0.5259, allocations: 81.23 kB / 0.5395 GB, free: 7.375 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.882e-05/0.526, allocations: 70.78 kB / 0.5396 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.5262, allocations: 88.88 kB / 0.5397 GB, free: 7.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.5264, allocations: 321 kB / 0.54 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005717/0.527, allocations: 233.3 kB / 0.5402 GB, free: 6.805 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005514/0.5275, allocations: 229.5 kB / 0.5404 GB, free: 6.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/0.5297, allocations: 0.556 MB / 0.541 GB, free: 6.398 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.5297, allocations: 3.938 kB / 0.541 GB, free: 6.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001912/0.5316, allocations: 0.615 MB / 0.5416 GB, free: 6.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.5316, allocations: 5.344 kB / 0.5416 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.5317, allocations: 1.406 kB / 0.5416 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.5317, allocations: 4 kB / 0.5416 GB, free: 6.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000655/0.5324, allocations: 104.5 kB / 0.5417 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.5324, allocations: 1 kB / 0.5417 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/0.5328, allocations: 24.7 kB / 0.5417 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-05/0.5329, allocations: 40.22 kB / 0.5418 GB, free: 5.973 MB / 398.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.0001735/0.5331, allocations: 121.6 kB / 0.5419 GB, free: 5.848 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.473e-05/0.5332, allocations: 11.83 kB / 0.5419 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002233/0.5354, allocations: 0.7323 MB / 0.5426 GB, free: 5.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.5354, allocations: 4 kB / 0.5426 GB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.5354, allocations: 480 / 0.5426 GB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.5354, allocations: 0 / 0.5426 GB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004059/0.5395, allocations: 1.149 MB / 0.5437 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.5395, allocations: 4 kB / 0.5437 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005811/0.5401, allocations: 104 kB / 0.5438 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.5402, allocations: 11.88 kB / 0.5439 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.16e-05/0.5402, allocations: 23.95 kB / 0.5439 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.5402, allocations: 4 kB / 0.5439 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.5402, allocations: 0 / 0.5439 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.542, allocations: 0.5848 MB / 0.5444 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.936e-05/0.5421, allocations: 89.06 kB / 0.5445 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.859e-05/0.5421, allocations: 8 kB / 0.5445 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003951/0.5425, allocations: 27.95 kB / 0.5446 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.356e-05/0.5426, allocations: 11.98 kB / 0.5446 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.677e-05/0.5426, allocations: 27.95 kB / 0.5446 GB, free: 2.969 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.142e-05/0.5427, allocations: 87.22 kB / 0.5447 GB, free: 2.883 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5427, allocations: 0 / 0.5447 GB, free: 2.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00191/0.5446, allocations: 0.648 MB / 0.5453 GB, free: 2.234 MB / 398.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.005328/0.55, allocations: 1.318 MB / 0.5466 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.5513, allocations: 451.5 kB / 0.547 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.5514, allocations: 0 / 0.547 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005641/0.5519, allocations: 204.1 kB / 0.5472 GB, free: 232 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.5523, allocations: 22.98 kB / 0.5473 GB, free: 212 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003207/0.5555, allocations: 0.6124 MB / 0.5479 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/0.5558, allocations: 0.6965 MB / 0.5485 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004229/0.5563, allocations: 129.1 kB / 0.5487 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003538/0.5566, allocations: 102.4 kB / 0.5488 GB, free: 14.58 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.5566, allocations: 0 / 0.5488 GB, free: 14.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1088/0.6654, allocations: 58.59 MB / 0.606 GB, free: 4.016 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.604/9.269, allocations: 10.41 kB / 0.606 GB, free: 4.008 MB / 462.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1)