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.00102/0.00102, allocations: 101.8 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001292/0.001292, allocations: 191.4 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2368/0.2368, allocations: 45.92 MB / 344.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002452/0.0002452, allocations: 8 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1227, allocations: 63.46 MB / 481.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0005487/0.1233, allocations: 226.9 kB / 481.9 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002373/0.1257, allocations: 1.934 MB / 483.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.182e-05/0.1257, allocations: 0 / 483.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.839e-06/0.1257, allocations: 0 / 483.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.011e-06/0.1257, allocations: 0 / 483.8 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.001107/0.1269, allocations: 407.1 kB / 484.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.578e-05/0.1269, allocations: 0 / 484.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.253e-05/0.1269, allocations: 4 kB / 484.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.359e-05/0.127, allocations: 0 / 484.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.66e-05/0.127, allocations: 0 / 484.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.302e-06/0.127, allocations: 0 / 484.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009829/0.128, allocations: 0.6707 MB / 484.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.531e-06/0.128, allocations: 0 / 484.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.85e-05/0.128, allocations: 25.7 kB / 484.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003495/0.1284, allocations: 263.5 kB / 485.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1284, allocations: 0 / 485.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1284, allocations: 3.938 kB / 485.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1284, allocations: 0 / 485.1 MB, free: 1.73 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.0003735/0.1288, allocations: 405.1 kB / 485.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.1288, allocations: 8.031 kB / 485.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.926e-05/0.1289, allocations: 46.56 kB / 485.6 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.331e-05/0.1289, allocations: 3.938 kB / 485.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.352e-05/0.129, allocations: 167 kB / 485.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.129, allocations: 0 / 485.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.774e-06/0.1291, allocations: 0 / 485.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.326e-05/0.1291, allocations: 33.69 kB / 485.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.1292, allocations: 0 / 485.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-06/0.1292, allocations: 0 / 485.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1292, allocations: 4 kB / 485.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.006e-05/0.1292, allocations: 3.938 kB / 485.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002201/0.1294, allocations: 236.9 kB / 486 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.485e-05/0.1295, allocations: 18.61 kB / 486.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.177e-05/0.1295, allocations: 12.92 kB / 486.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.365e-06/0.1295, allocations: 0 / 486.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.1296, allocations: 64.25 kB / 486.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.1296, allocations: 4 kB / 486.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001793/0.1298, allocations: 71.34 kB / 486.2 MB, free: 488 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.1298, allocations: 77.11 kB / 486.3 MB, free: 392 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.441e-05/0.1299, allocations: 89.86 kB / 486.4 MB, free: 292 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.1299, allocations: 25.7 kB / 486.4 MB, free: 260 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.761e-05/0.1299, allocations: 84.12 kB / 486.5 MB, free: 172 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.13, allocations: 8.125 kB / 486.5 MB, free: 164 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-06/0.13, allocations: 0 / 486.5 MB, free: 164 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.1301, allocations: 326.9 kB / 486.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.001e-05/0.1301, allocations: 0 / 486.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.023e-06/0.1301, allocations: 4 kB / 486.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.763e-05/0.1302, allocations: 25.7 kB / 486.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1302, allocations: 0 / 486.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.509e-05/0.1303, allocations: 75.33 kB / 486.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/0.1303, allocations: 32.05 kB / 486.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.1303, allocations: 0 / 486.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.847e-06/0.1303, allocations: 0 / 486.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-05/0.1303, allocations: 4.094 kB / 486.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.1304, allocations: 4 kB / 486.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.428e-05/0.1304, allocations: 0 / 486.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.1304, allocations: 0 / 486.9 MB, free: 15.67 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.705e-05/0.1305, allocations: 143.5 kB / 487.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.1305, allocations: 0 / 487.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.554e-05/0.1305, allocations: 11.06 kB / 487.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1305, allocations: 0 / 487.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1305, allocations: 0 / 487.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.1306, allocations: 4 kB / 487.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.1308, allocations: 300.2 kB / 487.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1308, allocations: 3.938 kB / 487.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.556e-06/0.1308, allocations: 0 / 487.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1308, allocations: 0 / 487.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.1308, allocations: 0 / 487.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1308, allocations: 7.984 kB / 487.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1309, allocations: 0 / 487.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001199/0.131, allocations: 173.1 kB / 487.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.675e-05/0.131, allocations: 89.08 kB / 487.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.131, allocations: 4 kB / 487.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.143e-05/0.1311, allocations: 4 kB / 487.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.277e-05/0.1311, allocations: 0 / 487.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.1311, allocations: 0 / 487.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.483e-05/0.1311, allocations: 79.22 kB / 487.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1312, allocations: 0 / 487.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004026/0.1316, allocations: 128 kB / 487.9 MB, free: 14.62 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.001068/0.1326, allocations: 0.9119 MB / 488.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.812e-05/0.1327, allocations: 63.39 kB / 488.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1328, allocations: 0 / 488.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.19e-05/0.1328, allocations: 63.34 kB / 488.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.133, allocations: 0 / 488.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004946/0.1335, allocations: 348.8 kB / 489.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.1337, allocations: 0.6731 MB / 489.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.183e-05/0.1338, allocations: 3.938 kB / 489.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.871e-05/0.1338, allocations: 11.44 kB / 489.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of SimCode: time 1.904e-06/0.1338, allocations: 0 / 489.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01597/0.1498, allocations: 4.313 MB / 494.2 MB, free: 8.227 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.15, allocations: 226.3 kB / 494.5 MB, free: 7.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.974/2.124, allocations: 0 / 494.5 MB, free: 7.98 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