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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00123/0.00123, allocations: 103.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001278/0.001278, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2256/0.2256, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB 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.002458/0.002458, allocations: 86.73 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.131, allocations: 62.45 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001981/0.133, allocations: 495.1 kB / 480.7 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003283/0.1363, allocations: 2.038 MB / 482.7 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.6e-05/0.1364, allocations: 0 / 482.7 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.339e-05/0.1364, allocations: 0 / 482.7 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.239e-06/0.1364, allocations: 0 / 482.7 MB, free: 2.574 MB / 350.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.001759/0.1382, allocations: 0.4917 MB / 483.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.017e-05/0.1383, allocations: 11.97 kB / 483.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.764e-05/0.1383, allocations: 4 kB / 483.2 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.049e-05/0.1384, allocations: 4 kB / 483.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.771e-05/0.1384, allocations: 0 / 483.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.808e-06/0.1384, allocations: 0 / 483.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001243/0.1397, allocations: 0.6279 MB / 483.9 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.518e-06/0.1397, allocations: 0 / 483.9 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.87e-05/0.1397, allocations: 3.938 kB / 483.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006014/0.1403, allocations: 391.3 kB / 484.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1403, allocations: 0 / 484.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1404, allocations: 0 / 484.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.1404, allocations: 0 / 484.3 MB, free: 1.051 MB / 350.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.0005211/0.1409, allocations: 413.4 kB / 484.7 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.1409, allocations: 12.03 kB / 484.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.615e-05/0.141, allocations: 38.73 kB / 484.7 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.921e-05/0.141, allocations: 0.9375 kB / 484.7 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.1412, allocations: 164.3 kB / 484.9 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.1412, allocations: 4.375 kB / 484.9 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.1412, allocations: 4.375 kB / 484.9 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.1413, allocations: 33.83 kB / 484.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1413, allocations: 0 / 484.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.797e-06/0.1413, allocations: 0 / 484.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1414, allocations: 0 / 484.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.211e-05/0.1414, allocations: 3.984 kB / 484.9 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002976/0.1417, allocations: 236.9 kB / 485.1 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.373e-05/0.1418, allocations: 30.64 kB / 485.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.6e-05/0.1418, allocations: 12.92 kB / 485.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.009e-05/0.1418, allocations: 0 / 485.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.067e-05/0.1419, allocations: 56.27 kB / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.1419, allocations: 4 kB / 485.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002328/0.1422, allocations: 71.39 kB / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.1422, allocations: 81.05 kB / 485.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.422e-05/0.1423, allocations: 89.86 kB / 485.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.1423, allocations: 25.7 kB / 485.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.063e-05/0.1424, allocations: 84.14 kB / 485.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.1424, allocations: 3.906 kB / 485.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.11e-05/0.1425, allocations: 17.72 kB / 485.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1426, allocations: 319 kB / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.244e-05/0.1426, allocations: 0 / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.586e-06/0.1426, allocations: 4 kB / 485.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.197e-05/0.1427, allocations: 64.27 kB / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.93e-06/0.1427, allocations: 7.875 kB / 486 MB, free: 15.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.514e-05/0.1428, allocations: 67.33 kB / 486.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.126e-05/0.1429, allocations: 33.7 kB / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1429, allocations: 3.922 kB / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1429, allocations: 4 kB / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.602e-05/0.1429, allocations: 0 / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.1429, allocations: 0 / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.184e-05/0.143, allocations: 8 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.143, allocations: 0 / 486.1 MB, free: 14.91 MB / 366.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 0.0001206/0.1431, allocations: 135.5 kB / 486.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.488e-05/0.1431, allocations: 4 kB / 486.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.739e-05/0.1432, allocations: 7.109 kB / 486.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1432, allocations: 0 / 486.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1432, allocations: 4 kB / 486.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1432, allocations: 0 / 486.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002889/0.1435, allocations: 300.3 kB / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1435, allocations: 3.938 kB / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.446e-06/0.1435, allocations: 0 / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.1435, allocations: 0 / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.1435, allocations: 4 kB / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1435, allocations: 0 / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1435, allocations: 4 kB / 486.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001383/0.1437, allocations: 173.1 kB / 486.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.1438, allocations: 77.11 kB / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.1438, allocations: 7.984 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.014e-05/0.1438, allocations: 0 / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.854e-05/0.1439, allocations: 0 / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.1439, allocations: 4 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.652e-05/0.1439, allocations: 79.31 kB / 486.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1439, allocations: 4.031 kB / 486.9 MB, free: 14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004604/0.1444, allocations: 135.9 kB / 487 MB, free: 13.87 MB / 366.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.001251/0.1456, allocations: 0.9136 MB / 487.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001168/0.1458, allocations: 71.39 kB / 488 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.1458, allocations: 0 / 488 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.318e-05/0.1458, allocations: 59.34 kB / 488.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.146, allocations: 4 kB / 488.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.1471, allocations: 1.192 MB / 489.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.1474, allocations: 0.6768 MB / 489.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.058e-05/0.1475, allocations: 0 / 489.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.776e-05/0.1475, allocations: 7.438 kB / 490 MB, free: 10.79 MB / 366.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1475, allocations: 0 / 490 MB, free: 10.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02853/0.176, allocations: 4.506 MB / 494.5 MB, free: 6.352 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.226/8.402, allocations: 15.81 kB / 494.5 MB, free: 6.34 MB / 366.1 MB (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)