Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_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.001249/0.001249, allocations: 98.59 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001522/0.001522, allocations: 206.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2135/0.2135, allocations: 45.91 MB / 344 MB, free: 12.11 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002355/0.0002357, allocations: 8 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.125, allocations: 63.46 MB / 481.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0006004/0.1256, allocations: 230.9 kB / 481.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00247/0.1281, allocations: 1.934 MB / 483.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.21e-05/0.1281, allocations: 0 / 483.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.748e-06/0.1281, allocations: 0 / 483.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.07e-06/0.1281, allocations: 0 / 483.7 MB, free: 3.098 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.00113/0.1293, allocations: 390.6 kB / 484.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.797e-05/0.1293, allocations: 0 / 484.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.864e-05/0.1294, allocations: 3.938 kB / 484.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.423e-05/0.1294, allocations: 4 kB / 484.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.061e-05/0.1294, allocations: 7.938 kB / 484.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-06/0.1294, allocations: 0 / 484.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009662/0.1304, allocations: 0.6436 MB / 484.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.432e-06/0.1304, allocations: 0 / 484.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.902e-05/0.1304, allocations: 33.7 kB / 484.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003615/0.1308, allocations: 251.6 kB / 485 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1308, allocations: 0 / 485 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1308, allocations: 0 / 485 MB, free: 1.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1308, allocations: 0 / 485 MB, free: 1.773 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.0003947/0.1312, allocations: 413 kB / 485.4 MB, free: 1.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1313, allocations: 8.031 kB / 485.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.318e-05/0.1314, allocations: 42.48 kB / 485.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.173e-05/0.1314, allocations: 3.938 kB / 485.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.1315, allocations: 163 kB / 485.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.1315, allocations: 0 / 485.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-06/0.1315, allocations: 0 / 485.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.149e-05/0.1316, allocations: 29.7 kB / 485.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.1316, allocations: 0 / 485.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.1316, allocations: 8 kB / 485.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.1317, allocations: 3.984 kB / 485.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.965e-05/0.1317, allocations: 4 kB / 485.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002395/0.1319, allocations: 228.9 kB / 485.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.57e-05/0.132, allocations: 26.59 kB / 485.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-06/0.132, allocations: 0 / 485.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.524e-05/0.1321, allocations: 64.33 kB / 486 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/0.1321, allocations: 0 / 486 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001841/0.1323, allocations: 75.33 kB / 486 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.1323, allocations: 77.11 kB / 486.1 MB, free: 448 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.31e-05/0.1324, allocations: 89.86 kB / 486.2 MB, free: 348 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.1324, allocations: 25.7 kB / 486.2 MB, free: 316 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.925e-05/0.1324, allocations: 80.14 kB / 486.3 MB, free: 232 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.1325, allocations: 8.125 kB / 486.3 MB, free: 224 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-06/0.1325, allocations: 8.125 kB / 486.3 MB, free: 216 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1326, allocations: 318.8 kB / 486.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.288e-06/0.1326, allocations: 0 / 486.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.413e-06/0.1327, allocations: 4 kB / 486.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.49e-05/0.1327, allocations: 25.7 kB / 486.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1327, allocations: 3.984 kB / 486.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.321e-05/0.1328, allocations: 67.41 kB / 486.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.014e-05/0.1328, allocations: 33.64 kB / 486.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.1328, allocations: 4.094 kB / 486.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1329, allocations: 0 / 486.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.611e-05/0.1329, allocations: 3.938 kB / 486.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.1329, allocations: 4 kB / 486.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.542e-05/0.1329, allocations: 3.984 kB / 486.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.1329, allocations: 0 / 486.8 MB, free: 15.72 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 (result,$outputAlias_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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.967e-05/0.133, allocations: 139.5 kB / 486.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.029e-05/0.1331, allocations: 0 / 486.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.777e-05/0.1331, allocations: 7.125 kB / 486.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1331, allocations: 4 kB / 486.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.1331, allocations: 4 kB / 486.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1331, allocations: 0 / 486.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002711/0.1334, allocations: 300.3 kB / 487.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.1334, allocations: 0 / 487.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.356e-06/0.1334, allocations: 7.875 kB / 487.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1334, allocations: 0 / 487.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.1334, allocations: 4 kB / 487.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1334, allocations: 0 / 487.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1334, allocations: 0 / 487.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.1336, allocations: 173.1 kB / 487.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.513e-05/0.1336, allocations: 81.09 kB / 487.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.1336, allocations: 4 kB / 487.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.402e-05/0.1337, allocations: 4 kB / 487.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.955e-05/0.1337, allocations: 0 / 487.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.1337, allocations: 0 / 487.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.07e-05/0.1338, allocations: 79.28 kB / 487.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1338, allocations: 4.031 kB / 487.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004269/0.1342, allocations: 128 kB / 487.7 MB, free: 14.68 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001164/0.1354, allocations: 0.9159 MB / 488.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001048/0.1355, allocations: 59.41 kB / 488.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1355, allocations: 0 / 488.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.918e-05/0.1356, allocations: 63.33 kB / 488.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001126/0.1357, allocations: 6.188 kB / 488.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00056/0.1363, allocations: 344.7 kB / 489.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.1366, allocations: 0.6732 MB / 489.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.483e-05/0.1366, allocations: 0 / 489.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.596e-05/0.1367, allocations: 15.38 kB / 489.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1367, allocations: 0 / 489.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01796/0.1546, allocations: 4.354 MB / 494.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002754/0.155, allocations: 210.1 kB / 494.3 MB, free: 8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.061, allocations: 0 / 494.3 MB, free: 8 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat does not exist to compare? outputFormat=mat