Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.002153/0.002153, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.002438/0.002438, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.492/1.492, allocations: 230.2 MB / 254.5 MB, free: 15.43 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.2297/0.2297, allocations: 46.88 MB / 357.4 MB, free: 10.57 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.TestRegFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",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.003365/0.003365, allocations: 80.86 kB / 0.4912 GB, free: 26.94 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1745/0.1779, allocations: 65.97 MB / 0.5556 GB, free: 9.191 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.002373/0.1803, allocations: 0.5358 MB / 0.5562 GB, free: 8.648 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005623/0.1808, allocations: 163.9 kB / 0.5563 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.529e-05/0.1809, allocations: 0 / 0.5563 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.234e-05/0.1809, allocations: 0 / 0.5563 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003537/0.1812, allocations: 39.78 kB / 0.5563 GB, free: 8.449 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.37e-06/0.1812, allocations: 0 / 0.5563 GB, free: 8.449 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 8.19e-05/0.1813, allocations: 23.92 kB / 0.5564 GB, free: 8.426 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.042e-05/0.1814, allocations: 0 / 0.5564 GB, free: 8.426 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.961e-05/0.1814, allocations: 15.91 kB / 0.5564 GB, free: 8.41 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.742e-05/0.1815, allocations: 19.86 kB / 0.5564 GB, free: 8.391 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.334e-05/0.1815, allocations: 4 kB / 0.5564 GB, free: 8.387 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001598/0.1817, allocations: 47.95 kB / 0.5565 GB, free: 8.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.1817, allocations: 0 / 0.5565 GB, free: 8.34 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.941e-05/0.1817, allocations: 11.92 kB / 0.5565 GB, free: 8.328 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.1819, allocations: 44.11 kB / 0.5565 GB, free: 8.285 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1819, allocations: 3.938 kB / 0.5565 GB, free: 8.281 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1819, allocations: 0 / 0.5565 GB, free: 8.281 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1819, allocations: 0 / 0.5565 GB, free: 8.281 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000473/0.1824, allocations: 343.3 kB / 0.5568 GB, free: 7.895 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.1824, allocations: 8.031 kB / 0.5568 GB, free: 7.887 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.8e-05/0.1825, allocations: 46.69 kB / 0.5569 GB, free: 7.832 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.145e-05/0.1825, allocations: 0.9375 kB / 0.5569 GB, free: 7.832 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.1827, allocations: 164.3 kB / 0.5571 GB, free: 7.633 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.1827, allocations: 8.312 kB / 0.5571 GB, free: 7.625 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.1827, allocations: 8.375 kB / 0.5571 GB, free: 7.617 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.1829, allocations: 54.23 kB / 0.5571 GB, free: 7.559 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.1829, allocations: 3.938 kB / 0.5571 GB, free: 7.555 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.1829, allocations: 0 / 0.5571 GB, free: 7.555 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.1829, allocations: 7.938 kB / 0.5571 GB, free: 7.547 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.1831, allocations: 55.95 kB / 0.5572 GB, free: 7.492 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002876/0.1834, allocations: 181.6 kB / 0.5574 GB, free: 7.266 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001888/0.1835, allocations: 66.56 kB / 0.5574 GB, free: 7.191 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.013e-05/0.1836, allocations: 29.12 kB / 0.5574 GB, free: 7.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005405/0.1842, allocations: 255.2 kB / 0.5577 GB, free: 6.855 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.78e-05/0.1842, allocations: 46.56 kB / 0.5577 GB, free: 6.801 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.572e-06/0.1842, allocations: 0 / 0.5577 GB, free: 6.801 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003726/0.1846, allocations: 105.5 kB / 0.5578 GB, free: 6.691 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.498e-05/0.1847, allocations: 51.41 kB / 0.5579 GB, free: 6.629 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.1848, allocations: 89.86 kB / 0.558 GB, free: 6.531 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.103e-05/0.1848, allocations: 33.7 kB / 0.558 GB, free: 6.492 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/0.1849, allocations: 80.14 kB / 0.5581 GB, free: 6.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.719e-05/0.1849, allocations: 35.69 kB / 0.5581 GB, free: 6.375 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.804e-05/0.185, allocations: 21.84 kB / 0.5581 GB, free: 6.348 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002182/0.1852, allocations: 322.8 kB / 0.5584 GB, free: 6.023 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.733e-05/0.1853, allocations: 12 kB / 0.5585 GB, free: 6.012 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.064e-05/0.1854, allocations: 20.36 kB / 0.5585 GB, free: 5.992 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001445/0.1855, allocations: 52.92 kB / 0.5585 GB, free: 5.938 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1855, allocations: 3.938 kB / 0.5585 GB, free: 5.934 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002225/0.1857, allocations: 89.58 kB / 0.5586 GB, free: 5.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.1857, allocations: 7.938 kB / 0.5586 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.1858, allocations: 3.984 kB / 0.5586 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.1858, allocations: 4 kB / 0.5586 GB, free: 5.824 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.1859, allocations: 12 kB / 0.5586 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.1859, allocations: 4 kB / 0.5586 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.06e-05/0.186, allocations: 4 kB / 0.5586 GB, free: 5.805 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.186, allocations: 4 kB / 0.5587 GB, free: 5.801 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 (10): * Single equations (assignments): 10 * 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.0001146/0.1861, allocations: 109.8 kB / 0.5588 GB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.811e-05/0.1861, allocations: 15.88 kB / 0.5588 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002846/0.1864, allocations: 97.52 kB / 0.5589 GB, free: 5.566 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1864, allocations: 4 kB / 0.5589 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1864, allocations: 4 kB / 0.5589 GB, free: 5.559 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1864, allocations: 0 / 0.5589 GB, free: 5.559 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002205/0.1866, allocations: 173.6 kB / 0.559 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1866, allocations: 4 kB / 0.559 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.1867, allocations: 15.94 kB / 0.5591 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.1868, allocations: 3.938 kB / 0.5591 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.029e-05/0.1868, allocations: 0 / 0.5591 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.1868, allocations: 0 / 0.5591 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.1868, allocations: 4.188 kB / 0.5591 GB, free: 5.312 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.187, allocations: 120.9 kB / 0.5592 GB, free: 5.176 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.223e-05/0.1871, allocations: 81.11 kB / 0.5593 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.1871, allocations: 3.938 kB / 0.5593 GB, free: 5.074 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.798e-05/0.1871, allocations: 4 kB / 0.5593 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.437e-05/0.1872, allocations: 7.984 kB / 0.5593 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.1872, allocations: 8 kB / 0.5593 GB, free: 5.055 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.444e-05/0.1872, allocations: 75.28 kB / 0.5594 GB, free: 4.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1872, allocations: 4.094 kB / 0.5594 GB, free: 4.977 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000364/0.1876, allocations: 15.94 kB / 0.5594 GB, free: 4.961 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (10): * Single equations (assignments): 10 * 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.0007213/0.1883, allocations: 0.6553 MB / 0.56 GB, free: 4.277 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001845/0.1885, allocations: 47.91 kB / 0.5601 GB, free: 4.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/0.1885, allocations: 7.938 kB / 0.5601 GB, free: 4.223 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.037e-05/0.1886, allocations: 35.92 kB / 0.5601 GB, free: 4.188 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.1888, allocations: 1.125 kB / 0.5601 GB, free: 4.188 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006262/0.1894, allocations: 175.1 kB / 0.5603 GB, free: 3.977 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.1898, allocations: 0.6807 MB / 0.5609 GB, free: 3.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.091e-05/0.1899, allocations: 7.781 kB / 0.5609 GB, free: 3.262 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.462e-05/0.1899, allocations: 19.42 kB / 0.561 GB, free: 3.242 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1899, allocations: 7.938 kB / 0.561 GB, free: 3.234 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.2172, allocations: 1.567 MB / 0.5625 GB, free: 1.773 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.038/8.256, allocations: 11.84 kB / 0.5625 GB, free: 1.762 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.240766081027687] Failed to read output from testmodel.py, exit status != 0: ['time', 'x', 'sqrtx', 'sqrtx_a', 'x2', 'x2_a', 'x3', 'x3_a', 'sqrtxerr', 'x2err', 'x3err'] 8.32461356697604 8.340592652 8.155350476 Calling exit ...