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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 97.91 kB / 20.48 MB, free: 1.215 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001926/0.001926, allocations: 218.3 kB / 23.78 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 207.7 MB / 234.6 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2355/0.2355, allocations: 44.26 MB / 331.1 MB, free: 9.305 MB / 270.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00228/0.00228, allocations: 71.89 kB / 468.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1393, allocations: 61.04 MB / 0.5169 GB, free: 7.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001779/0.1411, allocations: 0.5143 MB / 0.5174 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003267/0.1444, allocations: 1.975 MB / 0.5193 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.939e-05/0.1444, allocations: 0 / 0.5193 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.263e-05/0.1444, allocations: 0 / 0.5193 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.001e-06/0.1444, allocations: 7.938 kB / 0.5194 GB, free: 4.652 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.1459, allocations: 0.5181 MB / 0.5199 GB, free: 4.133 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.376e-05/0.146, allocations: 7.984 kB / 0.5199 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.468e-05/0.146, allocations: 4 kB / 0.5199 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.448e-05/0.146, allocations: 0 / 0.5199 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.745e-05/0.146, allocations: 0 / 0.5199 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.462e-06/0.1461, allocations: 0 / 0.5199 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.1471, allocations: 0.6901 MB / 0.5205 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.274e-06/0.1471, allocations: 0 / 0.5205 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.708e-05/0.1471, allocations: 0 / 0.5205 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005601/0.1477, allocations: 371.3 kB / 0.5209 GB, free: 3.066 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1477, allocations: 4 kB / 0.5209 GB, free: 3.062 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1477, allocations: 0 / 0.5209 GB, free: 3.062 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.1477, allocations: 0 / 0.5209 GB, free: 3.062 MB / 398.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.0004333/0.1481, allocations: 339.4 kB / 0.5212 GB, free: 2.695 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1482, allocations: 8.031 kB / 0.5212 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.401e-05/0.1482, allocations: 4.188 kB / 0.5212 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.535e-05/0.1482, allocations: 34.73 kB / 0.5213 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.211e-05/0.1483, allocations: 0.9375 kB / 0.5213 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.1484, allocations: 106.5 kB / 0.5214 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-06/0.1484, allocations: 384 / 0.5214 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.1484, allocations: 8.312 kB / 0.5214 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.1485, allocations: 67.28 kB / 0.5214 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.1485, allocations: 0 / 0.5214 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.1485, allocations: 3.984 kB / 0.5214 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.1485, allocations: 0 / 0.5214 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.635e-05/0.1486, allocations: 29.7 kB / 0.5215 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000227/0.1488, allocations: 200 kB / 0.5217 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.108e-05/0.1489, allocations: 60.22 kB / 0.5217 GB, free: 2.074 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.02e-05/0.1489, allocations: 34.62 kB / 0.5218 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.1489, allocations: 0 / 0.5218 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.313e-05/0.149, allocations: 64.27 kB / 0.5218 GB, free: 1.953 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.149, allocations: 0 / 0.5218 GB, free: 1.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002203/0.1492, allocations: 122.8 kB / 0.5219 GB, free: 1.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.1493, allocations: 77.11 kB / 0.522 GB, free: 1.715 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.792e-05/0.1493, allocations: 93.86 kB / 0.5221 GB, free: 1.613 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.1493, allocations: 25.7 kB / 0.5221 GB, free: 1.582 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.475e-05/0.1494, allocations: 80.14 kB / 0.5222 GB, free: 1.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.738e-05/0.1494, allocations: 11.94 kB / 0.5222 GB, free: 1.488 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.159e-05/0.1494, allocations: 17.7 kB / 0.5222 GB, free: 1.465 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1495, allocations: 314.8 kB / 0.5225 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.13e-05/0.1496, allocations: 37.77 kB / 0.5226 GB, free: 1.105 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.237e-05/0.1496, allocations: 29.7 kB / 0.5226 GB, free: 1.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.973e-05/0.1497, allocations: 64.2 kB / 0.5227 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1497, allocations: 0 / 0.5227 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001005/0.1498, allocations: 97.09 kB / 0.5227 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.1498, allocations: 29.7 kB / 0.5228 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1498, allocations: 0 / 0.5228 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.1498, allocations: 0 / 0.5228 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.757e-05/0.1499, allocations: 4 kB / 0.5228 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-06/0.1499, allocations: 4.094 kB / 0.5228 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.743e-05/0.1499, allocations: 3.984 kB / 0.5228 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.1499, allocations: 3.938 kB / 0.5228 GB, free: 0.8281 MB / 398.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 9.908e-05/0.15, allocations: 143.5 kB / 0.5229 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.431e-05/0.15, allocations: 4 kB / 0.5229 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.478e-05/0.15, allocations: 3.156 kB / 0.5229 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.15, allocations: 0 / 0.5229 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.15, allocations: 7.938 kB / 0.5229 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.15, allocations: 0 / 0.5229 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.1503, allocations: 297.1 kB / 0.5232 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1503, allocations: 8.031 kB / 0.5232 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.457e-06/0.1503, allocations: 0 / 0.5232 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.1503, allocations: 0 / 0.5232 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.1503, allocations: 0 / 0.5232 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1503, allocations: 0 / 0.5232 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1503, allocations: 0 / 0.5232 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/0.1505, allocations: 198.8 kB / 0.5234 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.948e-06/0.1505, allocations: 0 / 0.5234 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.1505, allocations: 4 kB / 0.5234 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.844e-05/0.1505, allocations: 0 / 0.5234 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/0.1506, allocations: 0 / 0.5234 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.1506, allocations: 4.031 kB / 0.5234 GB, free: 68 kB / 398.1 MB Notification: Performance of sorting global known variables: time 6.132e-05/0.1506, allocations: 87.22 kB / 0.5235 GB, free: 15.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1506, allocations: 0 / 0.5235 GB, free: 15.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004473/0.1511, allocations: 127.5 kB / 0.5236 GB, free: 15.86 MB / 414.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.001258/0.1523, allocations: 0.9634 MB / 0.5246 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000178/0.1525, allocations: 122.8 kB / 0.5247 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1525, allocations: 4 kB / 0.5247 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.57e-05/0.1526, allocations: 85.09 kB / 0.5248 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001982/0.1528, allocations: 0 / 0.5248 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.1541, allocations: 1.328 MB / 0.5261 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.593e-05/0.1541, allocations: 59.34 kB / 0.5261 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.088e-05/0.1541, allocations: 0 / 0.5261 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.605e-05/0.1542, allocations: 15.62 kB / 0.5261 GB, free: 13.06 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1542, allocations: 0 / 0.5261 GB, free: 13.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.1804, allocations: 4.64 MB / 0.5307 GB, free: 8.422 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/11.89, allocations: 4.062 kB / 0.5307 GB, free: 8.418 MB / 414.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.120165426982567]