Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",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.0007641/0.000764, allocations: 97 kB / 17 MB, free: 6.039 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.0008578/0.0008578, allocations: 182.1 kB / 17.89 MB, free: 5.637 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.344/1.344, allocations: 223.2 MB / 241.9 MB, free: 340 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.2192/0.2192, allocations: 44.23 MB / 337.2 MB, free: 2.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003354, allocations: 12 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09558/0.09594, allocations: 61.92 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0005057/0.09648, allocations: 226.9 kB / 471.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.09888, allocations: 1.937 MB / 473.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.182e-05/0.09891, allocations: 4 kB / 473.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.366e-06/0.09893, allocations: 0 / 473.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.09894, allocations: 0 / 473.8 MB, free: 11.48 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function ‘ModelicaTest.Math.Random.distributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.1001, allocations: 425 kB / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.582e-05/0.1002, allocations: 0 / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.383e-05/0.1002, allocations: 3.984 kB / 474.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.422e-05/0.1002, allocations: 4 kB / 474.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.567e-05/0.1003, allocations: 3.938 kB / 474.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.36e-06/0.1003, allocations: 0 / 474.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009468/0.1012, allocations: 0.6239 MB / 474.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.259e-06/0.1012, allocations: 0 / 474.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.332e-05/0.1013, allocations: 25.7 kB / 474.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.1017, allocations: 251.5 kB / 475.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1017, allocations: 0 / 475.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1017, allocations: 4 kB / 475.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.995e-06/0.1017, allocations: 0 / 475.1 MB, free: 10.15 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.0003565/0.102, allocations: 405.3 kB / 475.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.1021, allocations: 16.03 kB / 475.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.724e-05/0.1021, allocations: 38.48 kB / 475.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.807e-05/0.1022, allocations: 0 / 475.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.289e-05/0.1022, allocations: 159.1 kB / 475.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.1023, allocations: 4 kB / 475.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.1023, allocations: 15.89 kB / 475.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.039e-05/0.1024, allocations: 29.7 kB / 475.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.71e-06/0.1024, allocations: 0 / 475.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.111e-06/0.1024, allocations: 0 / 475.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1024, allocations: 3.984 kB / 475.8 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.536e-05/0.1024, allocations: 4 kB / 475.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002234/0.1026, allocations: 232.9 kB / 476 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.827e-05/0.1027, allocations: 26.66 kB / 476 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.097e-05/0.1027, allocations: 12.86 kB / 476.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.54e-06/0.1027, allocations: 0 / 476.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.1028, allocations: 60.27 kB / 476.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.1028, allocations: 0 / 476.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001569/0.1029, allocations: 75.33 kB / 476.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.103, allocations: 77.11 kB / 476.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.293e-05/0.103, allocations: 89.86 kB / 476.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.103, allocations: 25.7 kB / 476.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.159e-05/0.1031, allocations: 80.14 kB / 476.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.1031, allocations: 7.906 kB / 476.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-06/0.1031, allocations: 128 / 476.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.378e-05/0.1032, allocations: 314.8 kB / 476.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.558e-06/0.1032, allocations: 4 kB / 476.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.067e-06/0.1032, allocations: 7.984 kB / 476.8 MB, free: 8.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.516e-05/0.1033, allocations: 25.7 kB / 476.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1033, allocations: 0 / 476.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.767e-05/0.1033, allocations: 75.3 kB / 476.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.1034, allocations: 29.7 kB / 476.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.1034, allocations: 3.984 kB / 476.9 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.476e-06/0.1034, allocations: 4.094 kB / 476.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.33e-05/0.1034, allocations: 4 kB / 476.9 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.1034, allocations: 3.938 kB / 476.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.315e-05/0.1035, allocations: 0 / 476.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-06/0.1035, allocations: 0 / 476.9 MB, free: 8.082 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 7.442e-05/0.1035, allocations: 136.1 kB / 477.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.19e-05/0.1036, allocations: 3.953 kB / 477.1 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.268e-05/0.1036, allocations: 7.078 kB / 477.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.1036, allocations: 0 / 477.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1036, allocations: 7.938 kB / 477.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.1036, allocations: 0 / 477.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.1038, allocations: 308.2 kB / 477.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1039, allocations: 0 / 477.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.337e-06/0.1039, allocations: 0 / 477.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1039, allocations: 0 / 477.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.1039, allocations: 4 kB / 477.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1039, allocations: 0 / 477.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1039, allocations: 0 / 477.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001154/0.104, allocations: 173.1 kB / 477.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.116e-05/0.1041, allocations: 77.11 kB / 477.6 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.1041, allocations: 7.984 kB / 477.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.982e-05/0.1041, allocations: 0 / 477.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.073e-05/0.1041, allocations: 0 / 477.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.143e-06/0.1042, allocations: 11.98 kB / 477.6 MB, free: 7.242 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.011e-05/0.1042, allocations: 75.28 kB / 477.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1042, allocations: 8.031 kB / 477.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000381/0.1046, allocations: 123.9 kB / 477.9 MB, free: 7.039 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.0009173/0.1055, allocations: 0.9025 MB / 478.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.479e-05/0.1056, allocations: 67.34 kB / 478.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.1056, allocations: 0 / 478.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.741e-05/0.1056, allocations: 59.34 kB / 478.9 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001764/0.1058, allocations: 11.92 kB / 478.9 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004327/0.1063, allocations: 340.7 kB / 479.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002167/0.1065, allocations: 0.6732 MB / 479.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.987e-06/0.1065, allocations: 0 / 479.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.663e-05/0.1065, allocations: 11.44 kB / 479.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of SimCode: time 1.433e-06/0.1065, allocations: 0 / 479.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03852/0.1451, allocations: 4.197 MB / 484.1 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003769/0.1455, allocations: 228.7 kB / 484.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.087/2.232, allocations: 3.75 kB / 484.3 MB, free: 0.5352 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat does not exist to compare? outputFormat=mat