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.001317/0.001317, allocations: 97.22 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 174.9 kB / 16.57 MB, free: 6.391 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.859/1.859, allocations: 205.4 MB / 222.7 MB, free: 5.672 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.4182/0.4182, allocations: 43.54 MB / 314.5 MB, free: 8.957 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.000523/0.000523, allocations: 12 kB / 384 MB, free: 8.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1336, allocations: 58.85 MB / 442.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.000765/0.1344, allocations: 279 kB / 443.1 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000885/0.1353, allocations: 401.5 kB / 443.5 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.919e-05/0.1354, allocations: 0 / 443.5 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.501e-05/0.1355, allocations: 0 / 443.5 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.1356, allocations: 3.938 kB / 443.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005604/0.1362, allocations: 159.5 kB / 443.7 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002223/0.1364, allocations: 47.92 kB / 443.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.935e-05/0.1364, allocations: 3.984 kB / 443.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.766e-05/0.1365, allocations: 39.91 kB / 443.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.417e-05/0.1366, allocations: 19.92 kB / 443.8 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.1366, allocations: 0 / 443.8 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001802/0.1368, allocations: 75.86 kB / 443.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.255e-05/0.1369, allocations: 19.95 kB / 443.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.897e-05/0.1369, allocations: 29.7 kB / 443.9 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.1371, allocations: 87.86 kB / 444 MB, free: 12.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.1371, allocations: 0 / 444 MB, free: 12.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.1371, allocations: 0 / 444 MB, free: 12.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1371, allocations: 3.938 kB / 444 MB, free: 12.06 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.0005288/0.1377, allocations: 373 kB / 444.4 MB, free: 11.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.1377, allocations: 12.03 kB / 444.4 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.999e-05/0.1378, allocations: 42.48 kB / 444.4 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.1378, allocations: 11.86 kB / 444.4 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/0.138, allocations: 179.3 kB / 444.6 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.1381, allocations: 4 kB / 444.6 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.1381, allocations: 7.984 kB / 444.6 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/0.1383, allocations: 89.58 kB / 444.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.012e-06/0.1383, allocations: 0 / 444.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.1383, allocations: 4 kB / 444.7 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1383, allocations: 0 / 444.7 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.004e-05/0.1384, allocations: 27.97 kB / 444.7 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002513/0.1387, allocations: 165.5 kB / 444.9 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.1388, allocations: 46.56 kB / 444.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.1388, allocations: 4 kB / 444.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.1391, allocations: 131.5 kB / 445.1 MB, free: 10.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1391, allocations: 0 / 445.1 MB, free: 10.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003591/0.1395, allocations: 198.9 kB / 445.3 MB, free: 10.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.1396, allocations: 75.27 kB / 445.3 MB, free: 10.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.96e-05/0.1397, allocations: 93.86 kB / 445.4 MB, free: 10.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.1397, allocations: 29.7 kB / 445.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.184e-05/0.1398, allocations: 84.33 kB / 445.5 MB, free: 10.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.1399, allocations: 23.7 kB / 445.6 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.488e-05/0.1399, allocations: 4 kB / 445.6 MB, free: 10.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1401, allocations: 318.8 kB / 445.9 MB, free: 9.926 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.457e-05/0.1401, allocations: 23.98 kB / 445.9 MB, free: 9.902 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.445e-05/0.1402, allocations: 74.86 kB / 446 MB, free: 9.805 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.864e-05/0.1403, allocations: 69.62 kB / 446 MB, free: 9.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.1403, allocations: 0 / 446 MB, free: 9.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002302/0.1405, allocations: 159.1 kB / 446.2 MB, free: 9.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.17e-05/0.1406, allocations: 37.69 kB / 446.2 MB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1406, allocations: 0 / 446.2 MB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.1406, allocations: 4 kB / 446.2 MB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.1407, allocations: 19.94 kB / 446.2 MB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.1408, allocations: 8.062 kB / 446.3 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.321e-05/0.1408, allocations: 12.16 kB / 446.3 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.1408, allocations: 7.984 kB / 446.3 MB, free: 9.469 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,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002065/0.1411, allocations: 133.7 kB / 446.4 MB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.32e-05/0.1411, allocations: 7.906 kB / 446.4 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.482e-05/0.1411, allocations: 11.95 kB / 446.4 MB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.1411, allocations: 4 kB / 446.4 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1411, allocations: 0 / 446.4 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1412, allocations: 4 kB / 446.4 MB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.1413, allocations: 173.6 kB / 446.6 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1413, allocations: 0 / 446.6 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.634e-05/0.1414, allocations: 4 kB / 446.6 MB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1414, allocations: 0 / 446.6 MB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.1414, allocations: 4 kB / 446.6 MB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1414, allocations: 0 / 446.6 MB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.1414, allocations: 4.172 kB / 446.6 MB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000208/0.1416, allocations: 136.9 kB / 446.8 MB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.988e-05/0.1417, allocations: 93.02 kB / 446.8 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.1417, allocations: 4 kB / 446.8 MB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002062/0.1419, allocations: 23.91 kB / 446.9 MB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.552e-05/0.142, allocations: 8 kB / 446.9 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.142, allocations: 7.984 kB / 446.9 MB, free: 8.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.56e-05/0.142, allocations: 79.28 kB / 447 MB, free: 8.691 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.142, allocations: 4 kB / 447 MB, free: 8.688 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000287/0.1423, allocations: 36 kB / 447 MB, free: 8.652 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 (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.0009144/0.1433, allocations: 0.7537 MB / 447.8 MB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002094/0.1435, allocations: 123.2 kB / 447.9 MB, free: 7.754 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.1435, allocations: 4 kB / 447.9 MB, free: 7.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.143e-05/0.1436, allocations: 27.98 kB / 447.9 MB, free: 7.723 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001215/0.1437, allocations: 15.91 kB / 447.9 MB, free: 7.707 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.1452, allocations: 1.446 MB / 449.4 MB, free: 6.184 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.1455, allocations: 0.6888 MB / 450.1 MB, free: 5.469 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.827e-05/0.1456, allocations: 20.64 kB / 450.1 MB, free: 5.445 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.64e-05/0.1456, allocations: 15.44 kB / 450.1 MB, free: 5.43 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1456, allocations: 0 / 450.1 MB, free: 5.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01515/0.1608, allocations: 2.616 MB / 452.7 MB, free: 2.832 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001975/0.161, allocations: 209.4 kB / 452.9 MB, free: 2.598 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.878/2.039, allocations: 0 / 452.9 MB, free: 2.598 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat does not exist to compare? outputFormat=mat