Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_3_2_3_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.006767/0.006767, allocations: 100.2 kB / 15.87 MB, free: 6.309 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.001624/0.001624, allocations: 193.1 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.543/1.543, allocations: 205.1 MB / 222.6 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3149/0.3149, allocations: 43.5 MB / 313.5 MB, free: 8.324 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 70.56 kB / 382.1 MB, free: 8.387 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1192, allocations: 57.78 MB / 439.9 MB, free: 14.51 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00156/0.1209, allocations: 0.5737 MB / 440.5 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002779/0.1236, allocations: 2.133 MB / 442.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.328e-05/0.1237, allocations: 3.938 kB / 442.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.424e-05/0.1237, allocations: 0 / 442.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.759e-06/0.1237, allocations: 0 / 442.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.1248, allocations: 427.1 kB / 443 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.199e-05/0.1248, allocations: 0 / 443 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.693e-05/0.1249, allocations: 3.984 kB / 443 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.466e-05/0.1249, allocations: 0 / 443 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.746e-05/0.1249, allocations: 3.984 kB / 443 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.75e-06/0.1249, allocations: 4 kB / 443.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009019/0.1258, allocations: 0.6434 MB / 443.7 MB, free: 10.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.206e-06/0.1259, allocations: 0 / 443.7 MB, free: 10.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.437e-05/0.1259, allocations: 3.984 kB / 443.7 MB, free: 10.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005422/0.1264, allocations: 387.4 kB / 444.1 MB, free: 10.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1265, allocations: 0 / 444.1 MB, free: 10.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1265, allocations: 0 / 444.1 MB, free: 10.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.1265, allocations: 4 kB / 444.1 MB, free: 10.31 MB / 382.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.0004854/0.127, allocations: 417.2 kB / 444.5 MB, free: 9.848 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.127, allocations: 8.031 kB / 444.5 MB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.72e-05/0.1271, allocations: 38.64 kB / 444.5 MB, free: 9.793 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.492e-05/0.1271, allocations: 4.938 kB / 444.5 MB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.1272, allocations: 160.4 kB / 444.7 MB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.827e-06/0.1272, allocations: 4.375 kB / 444.7 MB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.315e-06/0.1273, allocations: 384 / 444.7 MB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.961e-05/0.1273, allocations: 37.83 kB / 444.7 MB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.1274, allocations: 0 / 444.7 MB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-06/0.1274, allocations: 3.938 kB / 444.7 MB, free: 9.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1274, allocations: 0 / 444.7 MB, free: 9.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.987e-05/0.1274, allocations: 7.984 kB / 444.7 MB, free: 9.535 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002029/0.1276, allocations: 228.9 kB / 445 MB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.491e-05/0.1277, allocations: 26.59 kB / 445 MB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.604e-05/0.1277, allocations: 12.92 kB / 445 MB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.703e-06/0.1277, allocations: 0 / 445 MB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/0.1278, allocations: 60.2 kB / 445.1 MB, free: 9.137 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.1278, allocations: 0 / 445.1 MB, free: 9.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001612/0.1279, allocations: 75.5 kB / 445.1 MB, free: 9.051 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.128, allocations: 85.11 kB / 445.2 MB, free: 8.949 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.324e-05/0.128, allocations: 89.86 kB / 445.3 MB, free: 8.852 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.988e-06/0.128, allocations: 25.7 kB / 445.3 MB, free: 8.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.06e-05/0.1281, allocations: 80.14 kB / 445.4 MB, free: 8.738 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.667e-05/0.1281, allocations: 3.906 kB / 445.4 MB, free: 8.734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.516e-05/0.1281, allocations: 17.66 kB / 445.4 MB, free: 8.711 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.1282, allocations: 318.8 kB / 445.8 MB, free: 8.391 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.317e-06/0.1282, allocations: 0 / 445.8 MB, free: 8.391 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.444e-06/0.1283, allocations: 8 kB / 445.8 MB, free: 8.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.797e-05/0.1283, allocations: 68.2 kB / 445.8 MB, free: 8.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.1283, allocations: 7.938 kB / 445.8 MB, free: 8.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.696e-05/0.1284, allocations: 67.39 kB / 445.9 MB, free: 8.215 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.1284, allocations: 29.7 kB / 445.9 MB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.1285, allocations: 0 / 445.9 MB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.1285, allocations: 3.938 kB / 445.9 MB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.227e-05/0.1285, allocations: 0 / 445.9 MB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.1285, allocations: 8.094 kB / 445.9 MB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.5e-05/0.1285, allocations: 0 / 445.9 MB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.1285, allocations: 0 / 445.9 MB, free: 8.168 MB / 382.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.0001482/0.1287, allocations: 143.5 kB / 446.1 MB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.1287, allocations: 0 / 446.1 MB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.43e-05/0.1287, allocations: 7.109 kB / 446.1 MB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1287, allocations: 0 / 446.1 MB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1287, allocations: 3.938 kB / 446.1 MB, free: 8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1287, allocations: 0 / 446.1 MB, free: 8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002187/0.129, allocations: 300.3 kB / 446.4 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.129, allocations: 0 / 446.4 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.336e-06/0.129, allocations: 0 / 446.4 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.129, allocations: 0 / 446.4 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.129, allocations: 0 / 446.4 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.129, allocations: 4 kB / 446.4 MB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.129, allocations: 0 / 446.4 MB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001069/0.1291, allocations: 177.2 kB / 446.6 MB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.673e-05/0.1292, allocations: 77.11 kB / 446.6 MB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.1292, allocations: 7.984 kB / 446.6 MB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.586e-05/0.1292, allocations: 0 / 446.6 MB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.442e-05/0.1292, allocations: 0 / 446.6 MB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.1293, allocations: 3.984 kB / 446.6 MB, free: 7.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.505e-05/0.1293, allocations: 75.28 kB / 446.7 MB, free: 7.266 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1293, allocations: 0 / 446.7 MB, free: 7.266 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003657/0.1297, allocations: 135.8 kB / 446.9 MB, free: 7.133 MB / 382.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.0009597/0.1306, allocations: 0.9128 MB / 447.8 MB, free: 6.191 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.362e-05/0.1307, allocations: 63.42 kB / 447.8 MB, free: 6.117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1307, allocations: 4.062 kB / 447.8 MB, free: 6.113 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.208e-05/0.1308, allocations: 59.41 kB / 447.9 MB, free: 6.043 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001846/0.131, allocations: 4 kB / 447.9 MB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008174/0.1318, allocations: 1.193 MB / 449.1 MB, free: 4.762 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/0.132, allocations: 0.6731 MB / 449.8 MB, free: 4.062 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.007e-05/0.132, allocations: 0 / 449.8 MB, free: 4.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.316e-05/0.132, allocations: 7.438 kB / 449.8 MB, free: 4.059 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.132, allocations: 4 kB / 449.8 MB, free: 4.055 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1732/0.3053, allocations: 4.283 MB / 454.1 MB, free: 48.42 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.3055, allocations: 234.2 kB / 454.3 MB, free: 48.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/2.121, allocations: 0 / 454.3 MB, free: 48.17 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches