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.001528/0.001528, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001595/0.001595, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2369/0.2369, allocations: 46.11 MB / 344.2 MB, free: 11.56 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.002273/0.002273, allocations: 83.91 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1307, allocations: 62.45 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001883/0.1327, allocations: 0.4904 MB / 480.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003292/0.136, allocations: 2.034 MB / 482.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.99e-05/0.136, allocations: 0 / 482.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.869e-05/0.1361, allocations: 0 / 482.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.839e-06/0.1361, allocations: 0 / 482.7 MB, free: 2.586 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.001618/0.1377, allocations: 0.4894 MB / 483.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.801e-05/0.1377, allocations: 0 / 483.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.826e-05/0.1378, allocations: 7.938 kB / 483.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.949e-05/0.1378, allocations: 7.984 kB / 483.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.037e-05/0.1378, allocations: 0 / 483.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.885e-06/0.1379, allocations: 0 / 483.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.139, allocations: 0.6396 MB / 483.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.498e-06/0.139, allocations: 0 / 483.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.077e-05/0.139, allocations: 7.938 kB / 483.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006153/0.1397, allocations: 383.3 kB / 484.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1397, allocations: 0 / 484.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1397, allocations: 0 / 484.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.1397, allocations: 0 / 484.3 MB, free: 1.059 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.0006792/0.1404, allocations: 417.4 kB / 484.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.1404, allocations: 8.031 kB / 484.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.899e-05/0.1405, allocations: 30.75 kB / 484.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.259e-05/0.1406, allocations: 0.9375 kB / 484.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.1407, allocations: 168.4 kB / 484.9 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.1408, allocations: 4.359 kB / 484.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.668e-06/0.1408, allocations: 384 / 484.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.1409, allocations: 41.77 kB / 484.9 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.1409, allocations: 0 / 484.9 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.1409, allocations: 0 / 484.9 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.1409, allocations: 0 / 484.9 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.458e-05/0.141, allocations: 4 kB / 484.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003067/0.1413, allocations: 236.9 kB / 485.1 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.837e-05/0.1414, allocations: 26.52 kB / 485.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.706e-05/0.1414, allocations: 8.922 kB / 485.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.1414, allocations: 0 / 485.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.925e-05/0.1415, allocations: 64.25 kB / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.1415, allocations: 0 / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002207/0.1417, allocations: 67.41 kB / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.509e-05/0.1418, allocations: 81.11 kB / 485.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.86e-05/0.1419, allocations: 97.84 kB / 485.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.1419, allocations: 25.7 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.259e-05/0.142, allocations: 80.14 kB / 485.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.142, allocations: 3.906 kB / 485.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.142, allocations: 13.72 kB / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1422, allocations: 311 kB / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.431e-05/0.1422, allocations: 11.94 kB / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.079e-05/0.1423, allocations: 4 kB / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.177e-05/0.1423, allocations: 68.19 kB / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1423, allocations: 3.938 kB / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.035e-05/0.1424, allocations: 67.41 kB / 486.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/0.1425, allocations: 33.64 kB / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.1425, allocations: 0 / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.1425, allocations: 0 / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.72e-05/0.1425, allocations: 8.094 kB / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.1426, allocations: 3.984 kB / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.771e-05/0.1426, allocations: 0 / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.1426, allocations: 3.938 kB / 486.1 MB, free: 14.92 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.000111/0.1427, allocations: 143.5 kB / 486.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.216e-05/0.1427, allocations: 0 / 486.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.616e-05/0.1428, allocations: 3.125 kB / 486.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.1428, allocations: 3.984 kB / 486.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1428, allocations: 0 / 486.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.1428, allocations: 4 kB / 486.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002991/0.1431, allocations: 304.3 kB / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1431, allocations: 0 / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.457e-06/0.1431, allocations: 0 / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.1431, allocations: 0 / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-06/0.1431, allocations: 4 kB / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1431, allocations: 0 / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.1431, allocations: 0 / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.1433, allocations: 181.1 kB / 486.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.534e-05/0.1433, allocations: 81.11 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.1434, allocations: 0 / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.842e-05/0.1434, allocations: 0 / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.562e-05/0.1434, allocations: 0 / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.1434, allocations: 4 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.532e-05/0.1435, allocations: 79.31 kB / 486.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1435, allocations: 0 / 486.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004438/0.1439, allocations: 131.9 kB / 487 MB, free: 13.88 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.001239/0.1452, allocations: 0.9216 MB / 488 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001158/0.1453, allocations: 63.41 kB / 488 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1453, allocations: 0 / 488 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.14e-05/0.1454, allocations: 67.39 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.000188/0.1456, allocations: 0 / 488.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.1467, 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.0003219/0.147, allocations: 0.669 MB / 489.9 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.317e-05/0.147, allocations: 0 / 489.9 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.992e-05/0.1471, allocations: 15.38 kB / 490 MB, free: 10.8 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1471, allocations: 0 / 490 MB, free: 10.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02659/0.1737, allocations: 4.506 MB / 494.5 MB, free: 6.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.357/8.531, allocations: 17.11 kB / 494.5 MB, free: 6.344 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1)