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.0009883/0.0009884, allocations: 96.31 kB / 16.98 MB, free: 5.938 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.001006/0.001006, allocations: 188.7 kB / 17.88 MB, free: 5.594 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.378/1.378, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2289/0.2289, allocations: 44.22 MB / 337.1 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003311/0.000331, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1242, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0006262/0.1249, allocations: 226.9 kB / 471.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002438/0.1274, allocations: 1.89 MB / 473.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.553e-05/0.1274, allocations: 0 / 473.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.1274, allocations: 0 / 473.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.429e-06/0.1274, allocations: 0 / 473.6 MB, free: 11.51 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.00114/0.1286, allocations: 398.4 kB / 474 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.817e-05/0.1286, allocations: 4 kB / 474 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.753e-05/0.1287, allocations: 0 / 474 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.43e-05/0.1287, allocations: 4 kB / 474 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.555e-05/0.1287, allocations: 0 / 474 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.231e-06/0.1287, allocations: 0 / 474 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008493/0.1296, allocations: 0.6396 MB / 474.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.22e-06/0.1296, allocations: 0 / 474.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.677e-05/0.1296, allocations: 29.7 kB / 474.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.13, allocations: 243.5 kB / 475 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.13, allocations: 0 / 475 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.13, allocations: 0 / 475 MB, free: 10.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.416e-06/0.13, allocations: 0 / 475 MB, free: 10.2 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.0003526/0.1304, allocations: 405.1 kB / 475.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1304, allocations: 12.03 kB / 475.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.068e-05/0.1305, allocations: 30.56 kB / 475.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.227e-05/0.1305, allocations: 3.984 kB / 475.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.476e-05/0.1306, allocations: 159.1 kB / 475.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.776e-06/0.1306, allocations: 0 / 475.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.1306, allocations: 7.953 kB / 475.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.216e-05/0.1307, allocations: 33.7 kB / 475.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-06/0.1307, allocations: 0 / 475.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-06/0.1307, allocations: 4 kB / 475.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1307, allocations: 3.938 kB / 475.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.012e-05/0.1308, allocations: 3.984 kB / 475.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002288/0.131, allocations: 224.9 kB / 475.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.516e-05/0.1311, allocations: 26.67 kB / 475.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.876e-06/0.1311, allocations: 3.984 kB / 475.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.136e-05/0.1311, allocations: 60.27 kB / 475.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.402e-06/0.1311, allocations: 3.938 kB / 475.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001862/0.1313, allocations: 67.41 kB / 476 MB, free: 8.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.1314, allocations: 85.03 kB / 476.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.949e-05/0.1314, allocations: 89.86 kB / 476.1 MB, free: 8.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.1315, allocations: 25.7 kB / 476.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.251e-05/0.1315, allocations: 80.14 kB / 476.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.215e-05/0.1315, allocations: 16.25 kB / 476.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-06/0.1315, allocations: 4 kB / 476.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.1316, allocations: 310.8 kB / 476.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.139e-05/0.1317, allocations: 0 / 476.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.105e-06/0.1317, allocations: 7.938 kB / 476.6 MB, free: 8.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.011e-05/0.1317, allocations: 25.7 kB / 476.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1317, allocations: 4 kB / 476.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.199e-05/0.1318, allocations: 75.28 kB / 476.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.1319, allocations: 29.7 kB / 476.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.1319, allocations: 4.094 kB / 476.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1319, allocations: 4 kB / 476.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.5e-05/0.1319, allocations: 0 / 476.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.1319, allocations: 0 / 476.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.483e-05/0.1319, allocations: 0 / 476.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.1319, allocations: 0 / 476.7 MB, free: 8.16 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 0.000102/0.1321, allocations: 144.1 kB / 476.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.1321, allocations: 3.953 kB / 476.9 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.639e-05/0.1321, allocations: 7.078 kB / 476.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.1321, allocations: 4 kB / 476.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.1321, allocations: 8 kB / 476.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.1321, allocations: 0 / 476.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.1324, allocations: 300.2 kB / 477.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1324, allocations: 0 / 477.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.501e-06/0.1324, allocations: 3.984 kB / 477.2 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.1324, allocations: 7.984 kB / 477.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.1324, allocations: 0 / 477.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1325, allocations: 0 / 477.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1325, allocations: 0 / 477.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.1326, allocations: 173.2 kB / 477.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.329e-05/0.1327, allocations: 85.06 kB / 477.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.1327, allocations: 3.938 kB / 477.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.948e-05/0.1327, allocations: 0 / 477.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.038e-05/0.1328, allocations: 3.938 kB / 477.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-06/0.1328, allocations: 4 kB / 477.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.202e-05/0.1328, allocations: 79.31 kB / 477.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1328, allocations: 0 / 477.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004571/0.1333, allocations: 124 kB / 477.7 MB, free: 7.109 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.001075/0.1344, allocations: 0.897 MB / 478.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.671e-05/0.1345, allocations: 71.33 kB / 478.6 MB, free: 6.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1345, allocations: 0 / 478.6 MB, free: 6.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.361e-05/0.1345, allocations: 59.41 kB / 478.7 MB, free: 6.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000113/0.1346, allocations: 2.469 kB / 478.7 MB, free: 6.035 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004844/0.1351, allocations: 344.6 kB / 479 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.1354, allocations: 0.677 MB / 479.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.083e-05/0.1354, allocations: 0 / 479.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.983e-05/0.1354, allocations: 11.44 kB / 479.7 MB, free: 4.934 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1354, allocations: 0 / 479.7 MB, free: 4.934 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.1578, allocations: 4.21 MB / 483.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002731/0.1581, allocations: 208.8 kB / 484.1 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.063, allocations: 0 / 484.1 MB, free: 0.5898 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