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.001513/0.001513, allocations: 122.7 kB / 18.5 MB, free: 4.578 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.001429/0.001429, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.487/1.487, allocations: 230.2 MB / 254.5 MB, free: 15.26 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.2277/0.2277, allocations: 46.89 MB / 357.4 MB, free: 10.61 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.002221/0.002221, allocations: 79.88 kB / 0.4912 GB, free: 8.617 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1324, allocations: 65.98 MB / 0.5556 GB, free: 6.512 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001739/0.1341, allocations: 0.5414 MB / 0.5562 GB, free: 5.965 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007625/0.1349, allocations: 407.3 kB / 0.5566 GB, free: 5.562 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.744e-05/0.1349, allocations: 0 / 0.5566 GB, free: 5.562 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.973e-05/0.1349, allocations: 3.938 kB / 0.5566 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.662e-05/0.1349, allocations: 3.938 kB / 0.5566 GB, free: 5.555 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004552/0.1354, allocations: 131.6 kB / 0.5567 GB, free: 5.426 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.558e-05/0.1355, allocations: 27.91 kB / 0.5567 GB, free: 5.398 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.882e-05/0.1355, allocations: 4 kB / 0.5567 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.507e-05/0.1355, allocations: 19.86 kB / 0.5567 GB, free: 5.375 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.749e-05/0.1356, allocations: 15.92 kB / 0.5568 GB, free: 5.359 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.226e-05/0.1356, allocations: 4 kB / 0.5568 GB, free: 5.355 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002641/0.1359, allocations: 163.8 kB / 0.5569 GB, free: 5.195 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.898e-06/0.1359, allocations: 4 kB / 0.5569 GB, free: 5.191 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.547e-05/0.1359, allocations: 15.88 kB / 0.5569 GB, free: 5.176 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.1361, allocations: 127.6 kB / 0.5571 GB, free: 5.051 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1361, allocations: 0 / 0.5571 GB, free: 5.051 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1361, allocations: 0 / 0.5571 GB, free: 5.051 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1361, allocations: 0 / 0.5571 GB, free: 5.051 MB / 414.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.0004673/0.1366, allocations: 375 kB / 0.5574 GB, free: 4.637 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1366, allocations: 8.031 kB / 0.5574 GB, free: 4.629 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.629e-05/0.1367, allocations: 38.75 kB / 0.5575 GB, free: 4.582 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.322e-05/0.1367, allocations: 0.9375 kB / 0.5575 GB, free: 4.582 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.1368, allocations: 180.3 kB / 0.5576 GB, free: 4.367 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.1369, allocations: 4.375 kB / 0.5576 GB, free: 4.363 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.287e-05/0.1369, allocations: 4.375 kB / 0.5576 GB, free: 4.359 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001304/0.137, allocations: 61.88 kB / 0.5577 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.137, allocations: 0 / 0.5577 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.137, allocations: 7.984 kB / 0.5577 GB, free: 4.285 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.137, allocations: 0 / 0.5577 GB, free: 4.285 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.364e-05/0.1371, allocations: 23.98 kB / 0.5577 GB, free: 4.262 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001945/0.1373, allocations: 169.7 kB / 0.5579 GB, free: 4.047 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002116/0.1375, allocations: 58.58 kB / 0.5579 GB, free: 3.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.634e-05/0.1375, allocations: 20.86 kB / 0.558 GB, free: 3.957 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002717/0.1378, allocations: 109.1 kB / 0.5581 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.1378, allocations: 34.5 kB / 0.5581 GB, free: 3.789 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 2.795e-06/0.1378, allocations: 3.984 kB / 0.5581 GB, free: 3.785 MB / 414.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.1243/0.2622, allocations: 6.388 MB / 0.5643 GB, free: 13.36 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.2622, allocations: 55.41 kB / 0.5644 GB, free: 13.3 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.091e-05/0.2623, allocations: 97.86 kB / 0.5645 GB, free: 13.19 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.26e-05/0.2624, allocations: 25.7 kB / 0.5645 GB, free: 13.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.266e-05/0.2624, allocations: 96.06 kB / 0.5646 GB, free: 13.06 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.558e-05/0.2625, allocations: 59.44 kB / 0.5647 GB, free: 13 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.2627, allocations: 85.59 kB / 0.5647 GB, free: 12.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.2628, allocations: 334.8 kB / 0.5651 GB, free: 12.58 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005328/0.2634, allocations: 223.8 kB / 0.5653 GB, free: 12.36 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005345/0.2639, allocations: 231.8 kB / 0.5655 GB, free: 12.13 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002061/0.266, allocations: 0.5612 MB / 0.566 GB, free: 11.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.266, allocations: 0 / 0.566 GB, free: 11.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001838/0.2678, allocations: 0.6167 MB / 0.5667 GB, free: 10.95 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.2678, allocations: 4 kB / 0.5667 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.2678, allocations: 0 / 0.5667 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.2679, allocations: 8.453 kB / 0.5667 GB, free: 10.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006423/0.2685, allocations: 103.8 kB / 0.5668 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.2685, allocations: 3.984 kB / 0.5668 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004206/0.2689, allocations: 27.97 kB / 0.5668 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.656e-05/0.269, allocations: 35.92 kB / 0.5668 GB, free: 10.77 MB / 430.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.000146/0.2691, allocations: 125.7 kB / 0.5669 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.326e-05/0.2692, allocations: 7.953 kB / 0.567 GB, free: 10.63 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002099/0.2713, allocations: 0.7279 MB / 0.5677 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.2713, allocations: 4 kB / 0.5677 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2713, allocations: 0 / 0.5677 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.2713, allocations: 3.984 kB / 0.5677 GB, free: 9.887 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004009/0.2753, allocations: 1.157 MB / 0.5688 GB, free: 8.656 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2753, allocations: 0 / 0.5688 GB, free: 8.656 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005352/0.2759, allocations: 99.8 kB / 0.5689 GB, free: 8.559 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.2759, allocations: 4 kB / 0.5689 GB, free: 8.555 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.744e-05/0.2759, allocations: 27.95 kB / 0.5689 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.2759, allocations: 4 kB / 0.5689 GB, free: 8.523 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2759, allocations: 0 / 0.5689 GB, free: 8.523 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001642/0.2776, allocations: 0.5862 MB / 0.5695 GB, free: 7.902 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.529e-05/0.2776, allocations: 85.06 kB / 0.5696 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.475e-05/0.2777, allocations: 4 kB / 0.5696 GB, free: 7.797 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003999/0.2781, allocations: 31.89 kB / 0.5696 GB, free: 7.766 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.274e-05/0.2781, allocations: 23.98 kB / 0.5696 GB, free: 7.742 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.2782, allocations: 27.95 kB / 0.5697 GB, free: 7.715 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.227e-05/0.2782, allocations: 87.22 kB / 0.5698 GB, free: 7.629 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2782, allocations: 0 / 0.5698 GB, free: 7.629 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001728/0.2799, allocations: 0.648 MB / 0.5704 GB, free: 6.98 MB / 430.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.004646/0.2846, allocations: 1.316 MB / 0.5717 GB, free: 5.617 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.2858, allocations: 435.5 kB / 0.5721 GB, free: 5.191 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.2858, allocations: 4 kB / 0.5721 GB, free: 5.188 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005133/0.2863, allocations: 195.7 kB / 0.5723 GB, free: 4.996 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.2866, allocations: 8 kB / 0.5723 GB, free: 4.988 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/0.2897, allocations: 0.6244 MB / 0.5729 GB, free: 4.305 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.29, allocations: 0.6926 MB / 0.5736 GB, free: 3.582 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004317/0.2904, allocations: 120.9 kB / 0.5737 GB, free: 3.457 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003039/0.2907, allocations: 103.3 kB / 0.5738 GB, free: 3.355 MB / 430.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2907, allocations: 0 / 0.5738 GB, free: 3.355 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3582/0.6489, allocations: 58.59 MB / 0.631 GB, free: 11.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.415/9.064, allocations: 11.59 kB / 0.631 GB, free: 11.14 MB / 446.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: 12.08636835590005] Failed to read output from testmodel.py, exit status != 0: ['time', 'x', 'y', 'yd', 'ydd', 'k1', 'k2', 'y2', 'y2d', 'y2dd'] 9.146460620686412 9.157892179 9.019402856 Calling exit ...