Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.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.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",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.00543/0.005435, allocations: 100.3 kB / 15.87 MB, free: 6.316 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.001111/0.00111, allocations: 193.1 kB / 16.79 MB, free: 6.242 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.403/1.403, allocations: 205.1 MB / 222.6 MB, free: 4.746 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.3327/0.3327, allocations: 43.5 MB / 313.5 MB, free: 8.508 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.001312/0.001312, allocations: 63.91 kB / 382.1 MB, free: 8.625 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1173, allocations: 57.78 MB / 439.9 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001814/0.1191, allocations: 0.597 MB / 440.5 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009358/0.1201, allocations: 466.8 kB / 441 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.004e-05/0.1201, allocations: 0 / 441 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.194e-05/0.1202, allocations: 0 / 441 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.1204, allocations: 0 / 441 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004956/0.1209, allocations: 159.7 kB / 441.1 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000145/0.121, allocations: 71.86 kB / 441.2 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.55e-05/0.1211, allocations: 7.984 kB / 441.2 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.837e-05/0.1211, allocations: 39.91 kB / 441.2 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.069e-05/0.1212, allocations: 19.91 kB / 441.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.075e-05/0.1212, allocations: 4 kB / 441.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001884/0.1214, allocations: 99.83 kB / 441.4 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.471e-05/0.1215, allocations: 19.97 kB / 441.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.336e-05/0.1216, allocations: 19.92 kB / 441.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002235/0.1218, allocations: 135.7 kB / 441.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1218, allocations: 4 kB / 441.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1218, allocations: 0 / 441.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.1218, allocations: 0 / 441.5 MB, free: 13.11 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005688/0.1224, allocations: 401.2 kB / 441.9 MB, free: 12.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1224, allocations: 12.03 kB / 441.9 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.048e-05/0.1225, allocations: 38.73 kB / 442 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.056e-05/0.1225, allocations: 8.844 kB / 442 MB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001814/0.1227, allocations: 188.5 kB / 442.2 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.1227, allocations: 384 / 442.2 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/0.1228, allocations: 8.375 kB / 442.2 MB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.123, allocations: 94.19 kB / 442.3 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.123, allocations: 3.938 kB / 442.3 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.123, allocations: 0 / 442.3 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.123, allocations: 0 / 442.3 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.815e-05/0.1231, allocations: 23.98 kB / 442.3 MB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001974/0.1233, allocations: 165.6 kB / 442.5 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.345e-05/0.1234, allocations: 46.5 kB / 442.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.338e-05/0.1235, allocations: 28.86 kB / 442.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.1235, allocations: 4 kB / 442.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.1237, allocations: 131.2 kB / 442.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.1237, allocations: 0 / 442.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002824/0.124, allocations: 129.5 kB / 442.8 MB, free: 11.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.1241, allocations: 59.55 kB / 442.9 MB, free: 11.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.012e-05/0.1242, allocations: 101.8 kB / 443 MB, free: 11.49 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1242, allocations: 25.7 kB / 443 MB, free: 11.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.326e-05/0.1242, allocations: 84.14 kB / 443.1 MB, free: 11.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.495e-05/0.1243, allocations: 27.64 kB / 443.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.42e-05/0.1243, allocations: 37.64 kB / 443.1 MB, free: 11.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.1245, allocations: 314.8 kB / 443.4 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.73e-05/0.1245, allocations: 31.97 kB / 443.5 MB, free: 10.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.239e-05/0.1246, allocations: 74.86 kB / 443.5 MB, free: 10.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.1248, allocations: 148.4 kB / 443.7 MB, free: 10.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1248, allocations: 0 / 443.7 MB, free: 10.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002255/0.125, allocations: 163.1 kB / 443.8 MB, free: 10.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/0.1251, allocations: 33.7 kB / 443.9 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1251, allocations: 0 / 443.9 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1251, allocations: 7.938 kB / 443.9 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.1252, allocations: 15.98 kB / 443.9 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1252, allocations: 8.062 kB / 443.9 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.901e-05/0.1253, allocations: 11.94 kB / 443.9 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.1253, allocations: 4 kB / 443.9 MB, free: 10.42 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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.0001423/0.1254, allocations: 137.8 kB / 444.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.668e-05/0.1255, allocations: 7.938 kB / 444.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.003e-05/0.1255, allocations: 3.969 kB / 444.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.1255, allocations: 4 kB / 444.1 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1255, allocations: 0 / 444.1 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1255, allocations: 3.984 kB / 444.1 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.1257, allocations: 169.6 kB / 444.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1257, allocations: 288 / 444.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.618e-05/0.1257, allocations: 11.92 kB / 444.3 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.1257, allocations: 8 kB / 444.3 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-06/0.1258, allocations: 3.938 kB / 444.3 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1258, allocations: 0 / 444.3 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1258, allocations: 0 / 444.3 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002011/0.126, allocations: 140.9 kB / 444.4 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.343e-05/0.126, allocations: 81.05 kB / 444.5 MB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.126, allocations: 4 kB / 444.5 MB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.1262, allocations: 19.97 kB / 444.5 MB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.884e-05/0.1263, allocations: 7.984 kB / 444.5 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.1263, allocations: 12.06 kB / 444.5 MB, free: 9.723 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.196e-05/0.1263, allocations: 79.27 kB / 444.6 MB, free: 9.645 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1263, allocations: 0 / 444.6 MB, free: 9.645 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.1266, allocations: 40 kB / 444.6 MB, free: 9.605 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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006724/0.1273, allocations: 0.7634 MB / 445.4 MB, free: 8.828 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001874/0.1275, allocations: 127.2 kB / 445.5 MB, free: 8.691 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1275, allocations: 448 / 445.5 MB, free: 8.691 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.766e-05/0.1276, allocations: 39.92 kB / 445.6 MB, free: 8.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001451/0.1277, allocations: 4 kB / 445.6 MB, free: 8.648 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.129, allocations: 1.436 MB / 447 MB, free: 7.086 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.1293, allocations: 0.6848 MB / 447.7 MB, free: 6.375 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.818e-05/0.1293, allocations: 20.59 kB / 447.7 MB, free: 6.352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.1294, allocations: 15.44 kB / 447.7 MB, free: 6.336 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1294, allocations: 0 / 447.7 MB, free: 6.336 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01414/0.1435, allocations: 2.801 MB / 450.5 MB, free: 3.527 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003141/0.1439, allocations: 231.4 kB / 450.8 MB, free: 3.277 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.933/2.076, allocations: 3.938 kB / 450.8 MB, free: 3.273 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches