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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001317/0.001317, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 212.6 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 230.5 MB / 258.2 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.234/0.234, allocations: 46.93 MB / 361.6 MB, free: 4.184 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002275/0.002275, allocations: 87.86 kB / 0.497 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3381, allocations: 66.09 MB / 0.5615 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001685/0.3398, allocations: 0.5266 MB / 0.562 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000809/0.3406, allocations: 414.8 kB / 0.5624 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.652e-05/0.3406, allocations: 0 / 0.5624 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.025e-05/0.3406, allocations: 7.875 kB / 0.5624 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.057e-05/0.3407, allocations: 3.938 kB / 0.5624 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004748/0.3411, allocations: 138.9 kB / 0.5626 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.728e-05/0.3412, allocations: 23.92 kB / 0.5626 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.595e-05/0.3412, allocations: 4 kB / 0.5626 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.465e-05/0.3413, allocations: 19.92 kB / 0.5626 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.075e-05/0.3413, allocations: 23.91 kB / 0.5626 GB, free: 3.125 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.608e-06/0.3413, allocations: 0 / 0.5626 GB, free: 3.125 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002737/0.3416, allocations: 159.8 kB / 0.5628 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.358e-05/0.3416, allocations: 7.984 kB / 0.5628 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.567e-05/0.3416, allocations: 15.88 kB / 0.5628 GB, free: 2.945 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002104/0.3419, allocations: 121.8 kB / 0.5629 GB, free: 2.828 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3419, allocations: 0 / 0.5629 GB, free: 2.828 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3419, allocations: 4 kB / 0.5629 GB, free: 2.824 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.3419, allocations: 0 / 0.5629 GB, free: 2.824 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.0004423/0.3423, allocations: 301.9 kB / 0.5632 GB, free: 2.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.3423, allocations: 11.97 kB / 0.5632 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.672e-05/0.3424, allocations: 34.73 kB / 0.5633 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.801e-05/0.3424, allocations: 8.938 kB / 0.5633 GB, free: 2.438 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.3425, allocations: 110.5 kB / 0.5634 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.586e-06/0.3425, allocations: 384 / 0.5634 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.3426, allocations: 4.375 kB / 0.5634 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.3427, allocations: 61.92 kB / 0.5634 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.3427, allocations: 3.938 kB / 0.5634 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.3427, allocations: 4 kB / 0.5634 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.3427, allocations: 12 kB / 0.5635 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.594e-05/0.3428, allocations: 23.98 kB / 0.5635 GB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001869/0.343, allocations: 140.7 kB / 0.5636 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002081/0.3432, allocations: 54.59 kB / 0.5637 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.16e-05/0.3432, allocations: 24.84 kB / 0.5637 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002345/0.3435, allocations: 35.95 kB / 0.5637 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.3435, allocations: 38.5 kB / 0.5638 GB, free: 1.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.072e-06/0.3435, allocations: 0 / 0.5638 GB, free: 1.84 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.1304/0.4739, allocations: 6.377 MB / 0.57 GB, free: 11.42 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.474, allocations: 51.41 kB / 0.57 GB, free: 11.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.4741, allocations: 101.8 kB / 0.5701 GB, free: 11.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.762e-05/0.4741, allocations: 29.7 kB / 0.5702 GB, free: 11.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.661e-05/0.4742, allocations: 88.14 kB / 0.5702 GB, free: 11.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.658e-05/0.4743, allocations: 67.42 kB / 0.5703 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/0.4744, allocations: 93.58 kB / 0.5704 GB, free: 10.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.4746, allocations: 326.7 kB / 0.5707 GB, free: 10.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000561/0.4752, allocations: 228.1 kB / 0.5709 GB, free: 10.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005656/0.4757, allocations: 238.2 kB / 0.5712 GB, free: 10.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0021/0.4778, allocations: 0.5551 MB / 0.5717 GB, free: 9.617 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4778, allocations: 0 / 0.5717 GB, free: 9.617 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001865/0.4797, allocations: 0.6126 MB / 0.5723 GB, free: 9 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.4797, allocations: 4 kB / 0.5723 GB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.4797, allocations: 0 / 0.5723 GB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.4797, allocations: 4 kB / 0.5723 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006704/0.4804, allocations: 111.8 kB / 0.5724 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.4804, allocations: 3.938 kB / 0.5724 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004456/0.4809, allocations: 23.95 kB / 0.5724 GB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.258e-05/0.4809, allocations: 31.95 kB / 0.5725 GB, free: 8.824 MB / 414.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.0001617/0.4811, allocations: 121.8 kB / 0.5726 GB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.479e-05/0.4811, allocations: 7.953 kB / 0.5726 GB, free: 8.688 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002199/0.4833, allocations: 0.7318 MB / 0.5733 GB, free: 7.945 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.872e-06/0.4833, allocations: 4 kB / 0.5733 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4834, allocations: 0 / 0.5733 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.4834, allocations: 0 / 0.5733 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004127/0.4875, allocations: 1.117 MB / 0.5744 GB, free: 6.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.4875, allocations: 0 / 0.5744 GB, free: 6.762 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005562/0.488, allocations: 103.8 kB / 0.5745 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.4881, allocations: 4.188 kB / 0.5745 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.892e-05/0.4881, allocations: 27.95 kB / 0.5745 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/0.4881, allocations: 4.469 kB / 0.5745 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4881, allocations: 0 / 0.5745 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00177/0.4899, allocations: 0.5889 MB / 0.5751 GB, free: 6.004 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.987e-05/0.4899, allocations: 11.95 kB / 0.5751 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.129e-05/0.4899, allocations: 4 kB / 0.5751 GB, free: 5.988 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004101/0.4904, allocations: 35.89 kB / 0.5752 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.288e-05/0.4904, allocations: 11.97 kB / 0.5752 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.715e-05/0.4904, allocations: 35.95 kB / 0.5752 GB, free: 5.906 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.483e-05/0.4905, allocations: 91.16 kB / 0.5753 GB, free: 5.816 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4905, allocations: 0 / 0.5753 GB, free: 5.816 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001667/0.4922, allocations: 0.648 MB / 0.5759 GB, free: 5.168 MB / 414.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.005154/0.4973, allocations: 1.314 MB / 0.5772 GB, free: 3.805 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.4986, allocations: 435.5 kB / 0.5776 GB, free: 3.379 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.4986, allocations: 0 / 0.5776 GB, free: 3.379 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005399/0.4992, allocations: 195.7 kB / 0.5778 GB, free: 3.188 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.4995, allocations: 12.38 kB / 0.5778 GB, free: 3.176 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/0.5031, allocations: 0.6201 MB / 0.5784 GB, free: 2.492 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003726/0.5035, allocations: 0.6965 MB / 0.5791 GB, free: 1.766 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004432/0.5039, allocations: 129 kB / 0.5792 GB, free: 1.637 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000336/0.5043, allocations: 95.28 kB / 0.5793 GB, free: 1.543 MB / 414.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5043, allocations: 0 / 0.5793 GB, free: 1.543 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1012/0.6055, allocations: 58.8 MB / 0.6367 GB, free: 6.695 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.265/8.87, allocations: 8 kB / 0.6367 GB, free: 6.688 MB / 478.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.762588426005095] Failed to read output from testmodel.py, exit status != 0: ['time', 'x', 'y', 'yd', 'ydd', 'k1', 'k2', 'y2', 'y2d', 'y2dd'] 8.957875784952193 8.979828756 8.634351313 Calling exit ...