Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.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.001303/0.001303, allocations: 118.6 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.00198/0.00198, 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.456/1.456, allocations: 230.2 MB / 254.5 MB, free: 15.27 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.2332/0.2332, allocations: 46.88 MB / 357.4 MB, free: 10.53 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.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions",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.002246/0.002246, allocations: 83.84 kB / 0.4912 GB, free: 8.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1284, allocations: 65.98 MB / 0.5556 GB, free: 6.473 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001605/0.1301, allocations: 498.6 kB / 0.5561 GB, free: 5.98 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.1324, allocations: 1.655 MB / 0.5577 GB, free: 4.309 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.38e-05/0.1325, allocations: 0 / 0.5577 GB, free: 4.309 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.529e-05/0.1325, allocations: 0 / 0.5577 GB, free: 4.309 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.801e-06/0.1325, allocations: 4 kB / 0.5577 GB, free: 4.305 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:4:3-36:22:writable] Warning: Pure function 'ModelicaTest.Math.ScalarFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0006038/0.1331, allocations: 159.5 kB / 0.5579 GB, free: 4.148 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.789e-05/0.1331, allocations: 3.938 kB / 0.5579 GB, free: 4.145 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.087e-05/0.1332, allocations: 4 kB / 0.5579 GB, free: 4.141 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.938e-05/0.1332, allocations: 0 / 0.5579 GB, free: 4.141 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.668e-05/0.1332, allocations: 7.984 kB / 0.5579 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.965e-06/0.1332, allocations: 3.938 kB / 0.5579 GB, free: 4.129 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004401/0.1337, allocations: 119.9 kB / 0.558 GB, free: 4.012 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.935e-06/0.1337, allocations: 0 / 0.558 GB, free: 4.012 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.631e-05/0.1337, allocations: 0 / 0.558 GB, free: 4.012 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.1338, allocations: 35.89 kB / 0.5581 GB, free: 3.977 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1338, allocations: 4 kB / 0.5581 GB, free: 3.973 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1338, allocations: 0 / 0.5581 GB, free: 3.973 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1338, allocations: 0 / 0.5581 GB, free: 3.973 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004768/0.1343, allocations: 353.2 kB / 0.5584 GB, free: 3.574 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1343, allocations: 12.03 kB / 0.5584 GB, free: 3.562 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.733e-05/0.1344, allocations: 30.75 kB / 0.5584 GB, free: 3.523 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.253e-05/0.1344, allocations: 0.9375 kB / 0.5584 GB, free: 3.523 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001627/0.1346, allocations: 160.4 kB / 0.5586 GB, free: 3.328 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.1346, allocations: 4.375 kB / 0.5586 GB, free: 3.324 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-06/0.1346, allocations: 4.375 kB / 0.5586 GB, free: 3.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.69e-05/0.1347, allocations: 37.75 kB / 0.5586 GB, free: 3.277 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.1347, allocations: 0 / 0.5586 GB, free: 3.277 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-06/0.1347, allocations: 8 kB / 0.5586 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.1347, allocations: 0 / 0.5586 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.453e-05/0.1347, allocations: 4 kB / 0.5586 GB, free: 3.266 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001519/0.1349, allocations: 145.6 kB / 0.5588 GB, free: 3.074 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.403e-05/0.1349, allocations: 18.61 kB / 0.5588 GB, free: 3.047 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.74e-05/0.1349, allocations: 12.84 kB / 0.5588 GB, free: 3.031 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.1349, allocations: 3.984 kB / 0.5588 GB, free: 3.027 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/0.135, allocations: 72.14 kB / 0.5589 GB, free: 2.941 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.135, allocations: 0 / 0.5589 GB, free: 2.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001731/0.1352, allocations: 59.47 kB / 0.5589 GB, free: 2.871 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.1352, allocations: 77.11 kB / 0.559 GB, free: 2.777 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.191e-05/0.1353, allocations: 101.8 kB / 0.5591 GB, free: 2.668 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.1353, allocations: 25.7 kB / 0.5591 GB, free: 2.637 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.51e-05/0.1353, allocations: 84.08 kB / 0.5592 GB, free: 2.551 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.1354, allocations: 0 / 0.5592 GB, free: 2.551 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.708e-05/0.1354, allocations: 17.84 kB / 0.5592 GB, free: 2.527 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.1355, allocations: 314.8 kB / 0.5595 GB, free: 2.211 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.578e-06/0.1355, allocations: 0 / 0.5595 GB, free: 2.211 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.294e-06/0.1356, allocations: 3.938 kB / 0.5595 GB, free: 2.207 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.503e-05/0.1356, allocations: 60.27 kB / 0.5596 GB, free: 2.133 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1356, allocations: 0 / 0.5596 GB, free: 2.133 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.194e-05/0.1357, allocations: 67.39 kB / 0.5597 GB, free: 2.055 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.475e-05/0.1357, allocations: 37.73 kB / 0.5597 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.1357, allocations: 0 / 0.5597 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.1357, allocations: 0 / 0.5597 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.1357, allocations: 0 / 0.5597 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.1357, allocations: 4 kB / 0.5597 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.514e-05/0.1358, allocations: 3.938 kB / 0.5597 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.1358, allocations: 0 / 0.5597 GB, free: 2.004 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001025/0.1359, allocations: 139.5 kB / 0.5598 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.437e-06/0.1359, allocations: 3.938 kB / 0.5598 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.448e-06/0.1359, allocations: 7.125 kB / 0.5598 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.1359, allocations: 0 / 0.5598 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.1359, allocations: 3.938 kB / 0.5599 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.1359, allocations: 0 / 0.5599 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.136, allocations: 149.7 kB / 0.56 GB, free: 1.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.136, allocations: 3.984 kB / 0.56 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.136, allocations: 0 / 0.56 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.136, allocations: 3.938 kB / 0.56 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.136, allocations: 0 / 0.56 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.136, allocations: 0 / 0.56 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.136, allocations: 0 / 0.56 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001103/0.1361, allocations: 98.83 kB / 0.5601 GB, free: 1.516 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.305e-05/0.1362, allocations: 81.05 kB / 0.5602 GB, free: 1.418 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.1362, allocations: 4 kB / 0.5602 GB, free: 1.414 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.884e-06/0.1362, allocations: 4 kB / 0.5602 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.042e-05/0.1362, allocations: 0 / 0.5602 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-06/0.1362, allocations: 0 / 0.5602 GB, free: 1.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.137e-05/0.1362, allocations: 75.28 kB / 0.5603 GB, free: 1.336 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1362, allocations: 4.031 kB / 0.5603 GB, free: 1.332 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002016/0.1364, allocations: 16 kB / 0.5603 GB, free: 1.316 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0007606/0.1372, allocations: 0.6705 MB / 0.5609 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001191/0.1373, allocations: 63.44 kB / 0.561 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1373, allocations: 0 / 0.561 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.782e-05/0.1374, allocations: 55.39 kB / 0.561 GB, free: 484 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.1375, allocations: 10.44 kB / 0.561 GB, free: 476 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003011/0.1378, allocations: 122.6 kB / 0.5612 GB, free: 312 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.1381, allocations: 0.6768 MB / 0.5618 GB, free: 15.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.4e-06/0.1381, allocations: 0 / 0.5618 GB, free: 15.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.373e-05/0.1381, allocations: 7.438 kB / 0.5618 GB, free: 15.59 MB / 430.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1381, allocations: 4.125 kB / 0.5618 GB, free: 15.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.1599, allocations: 1.487 MB / 0.5633 GB, free: 14.18 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.802/7.962, allocations: 3.938 kB / 0.5633 GB, free: 14.18 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.854347741231322] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.028170798905194 8.053534316 7.915063729 Calling exit ...