Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009008/0.0009009, allocations: 98.72 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009401/0.0009403, allocations: 174.4 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.2 MB / 241.9 MB, free: 368 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2/0.2, allocations: 44.23 MB / 337.2 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003498, allocations: 8 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1216, allocations: 61.93 MB / 471.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0005705/0.1222, allocations: 218.9 kB / 471.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002611/0.1249, allocations: 1.898 MB / 473.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.421e-05/0.1249, allocations: 0 / 473.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.264e-06/0.1249, allocations: 0 / 473.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.18e-06/0.1249, allocations: 0 / 473.8 MB, free: 11.5 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.001216/0.1262, allocations: 410 kB / 474.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.508e-05/0.1262, allocations: 0 / 474.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.096e-05/0.1262, allocations: 4 kB / 474.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.027e-05/0.1262, allocations: 0 / 474.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.359e-05/0.1263, allocations: 4 kB / 474.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.499e-06/0.1263, allocations: 0 / 474.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001094/0.1274, allocations: 0.659 MB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.711e-06/0.1274, allocations: 0 / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.241e-05/0.1274, allocations: 29.7 kB / 474.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000527/0.128, allocations: 243.5 kB / 475.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.128, allocations: 0 / 475.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.128, allocations: 0 / 475.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.128, allocations: 7.938 kB / 475.1 MB, free: 10.16 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.0004164/0.1284, allocations: 405.1 kB / 475.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.1285, allocations: 8.031 kB / 475.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.115e-05/0.1285, allocations: 38.5 kB / 475.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.903e-05/0.1285, allocations: 0 / 475.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.116e-05/0.1286, allocations: 159.1 kB / 475.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.1286, allocations: 0 / 475.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.124e-05/0.1287, allocations: 3.953 kB / 475.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.247e-05/0.1287, allocations: 41.62 kB / 475.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.53e-06/0.1287, allocations: 0 / 475.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.63e-06/0.1288, allocations: 0 / 475.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.1288, allocations: 4 kB / 475.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.666e-05/0.1288, allocations: 0 / 475.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002113/0.129, allocations: 240.8 kB / 476 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.828e-05/0.1291, allocations: 22.61 kB / 476 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.018e-05/0.1291, allocations: 12.92 kB / 476 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.957e-06/0.1291, allocations: 0 / 476 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.609e-05/0.1292, allocations: 64.25 kB / 476.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.21e-07/0.1292, allocations: 0 / 476.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001955/0.1294, allocations: 71.34 kB / 476.2 MB, free: 8.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.1294, allocations: 77.11 kB / 476.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.861e-05/0.1295, allocations: 89.86 kB / 476.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.1295, allocations: 29.83 kB / 476.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.095e-05/0.1296, allocations: 80.14 kB / 476.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.082e-05/0.1296, allocations: 16.11 kB / 476.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-06/0.1296, allocations: 0 / 476.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1297, allocations: 314.8 kB / 476.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.767e-06/0.1297, allocations: 0 / 476.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.466e-06/0.1298, allocations: 4 kB / 476.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.551e-05/0.1298, allocations: 25.7 kB / 476.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1298, allocations: 0 / 476.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.862e-05/0.1299, allocations: 83.34 kB / 476.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.1299, allocations: 29.7 kB / 476.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.1299, allocations: 0 / 476.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.947e-06/0.13, allocations: 0 / 476.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.338e-05/0.13, allocations: 0 / 476.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.13, allocations: 4 kB / 476.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.529e-05/0.13, allocations: 0 / 476.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.13, allocations: 3.984 kB / 476.9 MB, free: 8.098 MB / 350.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 9.546e-05/0.1301, allocations: 144.1 kB / 477 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.1302, allocations: 7.984 kB / 477 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.726e-05/0.1302, allocations: 7.078 kB / 477.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1302, allocations: 3.938 kB / 477.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/0.1302, allocations: 4 kB / 477.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1302, allocations: 3.938 kB / 477.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002763/0.1305, allocations: 300.2 kB / 477.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1305, allocations: 0 / 477.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.207e-06/0.1305, allocations: 0 / 477.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1305, allocations: 0 / 477.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-06/0.1305, allocations: 4.031 kB / 477.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1305, allocations: 7.984 kB / 477.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1306, allocations: 0 / 477.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001367/0.1307, allocations: 165.2 kB / 477.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.194e-05/0.1308, allocations: 85.05 kB / 477.6 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.1308, allocations: 4 kB / 477.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.231e-05/0.1308, allocations: 0 / 477.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.085e-05/0.1308, allocations: 4.031 kB / 477.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.1309, allocations: 0 / 477.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.79e-05/0.1309, allocations: 75.28 kB / 477.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1309, allocations: 0 / 477.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004935/0.1314, allocations: 124 kB / 477.8 MB, free: 7.059 MB / 350.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.001234/0.1326, allocations: 0.904 MB / 478.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.1328, allocations: 63.41 kB / 478.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.1328, allocations: 4.062 kB / 478.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.059e-05/0.1328, allocations: 63.33 kB / 478.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/0.1331, allocations: 7.938 kB / 478.9 MB, free: 5.973 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005608/0.1336, allocations: 344.6 kB / 479.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.1339, allocations: 0.6692 MB / 479.9 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.133e-05/0.1339, allocations: 4.094 kB / 479.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.134, allocations: 15.38 kB / 479.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.134, allocations: 0 / 479.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05373/0.1877, allocations: 4.163 MB / 484 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.1879, allocations: 209.7 kB / 484.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.134/2.322, allocations: 0 / 484.2 MB, free: 0.582 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat does not exist to compare? outputFormat=mat