Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.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.001228/0.001228, allocations: 123.6 kB / 18.45 MB, free: 4.59 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.001333/0.001333, allocations: 209.7 kB / 21.41 MB, free: 1.641 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.506/1.506, allocations: 227.4 MB / 251.7 MB, free: 96 kB / 190.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.2367/0.2367, allocations: 46.15 MB / 351.1 MB, free: 14.34 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.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial",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.002335/0.002335, allocations: 81.75 kB / 489.7 MB, free: 28.27 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1263, allocations: 62.45 MB / 0.5392 GB, free: 4.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001455/0.1278, allocations: 0.5013 MB / 0.5397 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002809/0.1306, allocations: 2.02 MB / 0.5416 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.683e-05/0.1306, allocations: 0 / 0.5416 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.623e-05/0.1307, allocations: 3.938 kB / 0.5416 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.391e-06/0.1307, allocations: 0 / 0.5416 GB, free: 2.27 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.132, allocations: 498.7 kB / 0.5421 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.203e-05/0.132, allocations: 7.938 kB / 0.5421 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.1321, allocations: 4 kB / 0.5421 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.259e-05/0.1321, allocations: 0 / 0.5421 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.426e-05/0.1321, allocations: 0 / 0.5421 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.751e-06/0.1321, allocations: 0 / 0.5421 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009999/0.1331, allocations: 0.6398 MB / 0.5427 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.586e-06/0.1332, allocations: 4 kB / 0.5427 GB, free: 1.125 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.418e-05/0.1332, allocations: 0 / 0.5427 GB, free: 1.125 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005626/0.1337, allocations: 391.1 kB / 0.5431 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1338, allocations: 0 / 0.5431 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1338, allocations: 0 / 0.5431 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1338, allocations: 0 / 0.5431 GB, free: 0.7422 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004638/0.1342, allocations: 420.5 kB / 0.5435 GB, free: 284 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.1343, allocations: 8.031 kB / 0.5435 GB, free: 276 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.093e-05/0.1343, allocations: 34.7 kB / 0.5436 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.262e-05/0.1344, allocations: 8.922 kB / 0.5436 GB, free: 224 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.1345, allocations: 176.3 kB / 0.5437 GB, free: 8 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.1345, allocations: 384 / 0.5437 GB, free: 8 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.503e-06/0.1345, allocations: 384 / 0.5437 GB, free: 8 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001193/0.1346, allocations: 37.77 kB / 0.5438 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.1347, allocations: 0 / 0.5438 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.1347, allocations: 0 / 0.5438 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1347, allocations: 0 / 0.5438 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.144e-05/0.1347, allocations: 4 kB / 0.5438 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002456/0.135, allocations: 236.9 kB / 0.544 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.436e-05/0.135, allocations: 22.52 kB / 0.544 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.639e-05/0.1351, allocations: 16.91 kB / 0.544 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.468e-06/0.1351, allocations: 0 / 0.544 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.833e-05/0.1351, allocations: 60.27 kB / 0.5441 GB, free: 15.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 2.785e-06/0.1351, allocations: 4 kB / 0.5441 GB, free: 15.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001916/0.1353, allocations: 71.39 kB / 0.5442 GB, free: 15.47 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.1354, allocations: 85.05 kB / 0.5442 GB, free: 15.37 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.71e-05/0.1354, allocations: 89.86 kB / 0.5443 GB, free: 15.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.505e-05/0.1355, allocations: 25.7 kB / 0.5444 GB, free: 15.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.381e-05/0.1355, allocations: 80.14 kB / 0.5444 GB, free: 15.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.697e-05/0.1355, allocations: 3.953 kB / 0.5444 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.1356, allocations: 17.72 kB / 0.5445 GB, free: 15.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1357, allocations: 318.9 kB / 0.5448 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.028e-05/0.1357, allocations: 0 / 0.5448 GB, free: 14.81 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.007e-05/0.1358, allocations: 7.984 kB / 0.5448 GB, free: 14.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.579e-05/0.1358, allocations: 64.27 kB / 0.5448 GB, free: 14.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1358, allocations: 3.938 kB / 0.5448 GB, free: 14.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.645e-05/0.1359, allocations: 63.41 kB / 0.5449 GB, free: 14.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.484e-05/0.1359, allocations: 41.62 kB / 0.5449 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.136, allocations: 0 / 0.5449 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.136, allocations: 96 / 0.5449 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.448e-05/0.136, allocations: 8 kB / 0.5449 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.136, allocations: 0 / 0.5449 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.273e-05/0.136, allocations: 0 / 0.5449 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.136, allocations: 0 / 0.5449 GB, free: 14.59 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: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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 9.351e-05/0.1361, allocations: 139.5 kB / 0.5451 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.006e-05/0.1362, allocations: 0 / 0.5451 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.142e-05/0.1362, allocations: 3.125 kB / 0.5451 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1362, allocations: 0 / 0.5451 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.1362, allocations: 0 / 0.5451 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1362, allocations: 4 kB / 0.5451 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003111/0.1365, allocations: 308.3 kB / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1365, allocations: 0 / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.497e-06/0.1365, allocations: 3.938 kB / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.1365, allocations: 0 / 0.5454 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.1365, allocations: 4 kB / 0.5454 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1366, allocations: 3.938 kB / 0.5454 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.1366, allocations: 0 / 0.5454 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00015/0.1367, allocations: 169.2 kB / 0.5455 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.321e-05/0.1368, allocations: 81.11 kB / 0.5456 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.1368, allocations: 0 / 0.5456 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.943e-05/0.1369, allocations: 0 / 0.5456 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.696e-05/0.1369, allocations: 3.984 kB / 0.5456 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.1369, allocations: 4 kB / 0.5456 GB, free: 13.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.131e-05/0.1369, allocations: 75.31 kB / 0.5457 GB, free: 13.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1369, allocations: 0 / 0.5457 GB, free: 13.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004048/0.1373, allocations: 135.6 kB / 0.5458 GB, free: 13.56 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: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.001092/0.1384, allocations: 0.9287 MB / 0.5467 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001137/0.1386, allocations: 67.39 kB / 0.5468 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1386, allocations: 0 / 0.5468 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.117e-05/0.1386, allocations: 63.34 kB / 0.5469 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001765/0.1388, allocations: 0 / 0.5469 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009695/0.1398, allocations: 1.191 MB / 0.548 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002891/0.1401, allocations: 0.6807 MB / 0.5487 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.11e-05/0.1401, allocations: 3.984 kB / 0.5487 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.979e-05/0.1401, allocations: 7.438 kB / 0.5487 GB, free: 10.45 MB / 414.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1401, allocations: 3.938 kB / 0.5487 GB, free: 10.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02695/0.1671, allocations: 4.529 MB / 0.5531 GB, free: 6.008 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.239/8.406, allocations: 13.08 kB / 0.5531 GB, free: 5.996 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.340290464926511] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.474677888909355 8.490198618 8.353685301 Calling exit ...