Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.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.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial",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.006315/0.006315, allocations: 101.1 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.001334/0.001334, allocations: 190.5 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.563/1.563, allocations: 205.1 MB / 222.6 MB, free: 4.715 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.3557/0.3557, allocations: 43.5 MB / 313.5 MB, free: 8.332 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.001639/0.001639, allocations: 63.91 kB / 382.1 MB, free: 8.418 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1247, allocations: 57.79 MB / 439.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001831/0.1265, allocations: 0.562 MB / 440.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002981/0.1295, allocations: 2.11 MB / 442.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.336e-05/0.1296, allocations: 0 / 442.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.894e-05/0.1296, allocations: 0 / 442.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.013e-06/0.1296, allocations: 4 kB / 442.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001284/0.1309, allocations: 407.1 kB / 443 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 2.915e-05/0.131, allocations: 4 kB / 443 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.346e-05/0.131, allocations: 0 / 443 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.915e-05/0.131, allocations: 4 kB / 443 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.469e-05/0.1311, allocations: 0 / 443 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.863e-06/0.1311, allocations: 0 / 443 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00103/0.1321, allocations: 0.6748 MB / 443.7 MB, free: 10.74 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.476e-06/0.1321, allocations: 3.938 kB / 443.7 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.159e-05/0.1322, allocations: 0 / 443.7 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005557/0.1327, allocations: 391.2 kB / 444.1 MB, free: 10.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1327, allocations: 0 / 444.1 MB, free: 10.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1327, allocations: 0 / 444.1 MB, free: 10.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.1327, allocations: 0 / 444.1 MB, free: 10.35 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.0004272/0.1332, allocations: 409.3 kB / 444.5 MB, free: 9.898 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.1332, allocations: 12.03 kB / 444.5 MB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.645e-05/0.1333, allocations: 38.59 kB / 444.5 MB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.416e-05/0.1333, allocations: 4.875 kB / 444.5 MB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.1334, allocations: 160.4 kB / 444.7 MB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-06/0.1335, allocations: 4.375 kB / 444.7 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.496e-06/0.1335, allocations: 4.375 kB / 444.7 MB, free: 9.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.776e-05/0.1336, allocations: 41.81 kB / 444.7 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.1336, allocations: 0 / 444.7 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.183e-06/0.1336, allocations: 0 / 444.7 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.1336, allocations: 0 / 444.7 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.162e-05/0.1336, allocations: 4 kB / 444.7 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002737/0.1339, allocations: 236.8 kB / 445 MB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.394e-05/0.134, allocations: 22.67 kB / 445 MB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.437e-05/0.134, allocations: 12.86 kB / 445 MB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.985e-06/0.134, allocations: 0 / 445 MB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.352e-05/0.1341, allocations: 60.27 kB / 445 MB, free: 9.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.01e-07/0.1341, allocations: 0 / 445 MB, free: 9.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001867/0.1343, allocations: 79.27 kB / 445.1 MB, free: 9.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.1343, allocations: 77.11 kB / 445.2 MB, free: 8.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.655e-05/0.1344, allocations: 93.86 kB / 445.3 MB, free: 8.895 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.1344, allocations: 25.7 kB / 445.3 MB, free: 8.863 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.34e-05/0.1344, allocations: 80.14 kB / 445.4 MB, free: 8.781 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.1345, allocations: 7.906 kB / 445.4 MB, free: 8.773 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/0.1345, allocations: 13.7 kB / 445.4 MB, free: 8.754 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1346, allocations: 314.8 kB / 445.7 MB, free: 8.438 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.425e-05/0.1346, allocations: 8.125 kB / 445.7 MB, free: 8.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.065e-06/0.1346, allocations: 4 kB / 445.7 MB, free: 8.426 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.689e-05/0.1347, allocations: 60.27 kB / 445.8 MB, free: 8.352 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1347, allocations: 3.938 kB / 445.8 MB, free: 8.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.393e-05/0.1348, allocations: 71.33 kB / 445.9 MB, free: 8.266 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.1348, allocations: 33.7 kB / 445.9 MB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1348, allocations: 0 / 445.9 MB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.1349, allocations: 0 / 445.9 MB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.444e-05/0.1349, allocations: 0 / 445.9 MB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.1349, allocations: 4.094 kB / 445.9 MB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.537e-05/0.1349, allocations: 0 / 445.9 MB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.1349, allocations: 7.984 kB / 445.9 MB, free: 8.215 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.0001036/0.135, allocations: 143.5 kB / 446.1 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.1351, allocations: 7.938 kB / 446.1 MB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.649e-05/0.1351, allocations: 3.125 kB / 446.1 MB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1351, allocations: 0 / 446.1 MB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1351, allocations: 0 / 446.1 MB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.1351, allocations: 0 / 446.1 MB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002422/0.1354, allocations: 304.2 kB / 446.4 MB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1354, allocations: 0 / 446.4 MB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.306e-06/0.1354, allocations: 0 / 446.4 MB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.1354, allocations: 3.984 kB / 446.4 MB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.1354, allocations: 0 / 446.4 MB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.1354, allocations: 0 / 446.4 MB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1354, allocations: 0 / 446.4 MB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001268/0.1355, allocations: 181.2 kB / 446.5 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-05/0.1356, allocations: 77.11 kB / 446.6 MB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/0.1356, allocations: 0 / 446.6 MB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.681e-05/0.1357, allocations: 4 kB / 446.6 MB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.911e-05/0.1357, allocations: 0 / 446.6 MB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.1357, allocations: 4 kB / 446.6 MB, free: 7.383 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.818e-05/0.1357, allocations: 79.22 kB / 446.7 MB, free: 7.305 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1357, allocations: 0 / 446.7 MB, free: 7.305 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004193/0.1362, allocations: 131.9 kB / 446.8 MB, free: 7.176 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.001096/0.1373, allocations: 0.909 MB / 447.7 MB, free: 6.238 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001122/0.1374, allocations: 67.39 kB / 447.8 MB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1374, allocations: 3.938 kB / 447.8 MB, free: 6.156 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.607e-05/0.1374, allocations: 59.34 kB / 447.9 MB, free: 6.086 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000188/0.1376, allocations: 7.594 kB / 447.9 MB, free: 6.082 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009125/0.1386, allocations: 1.193 MB / 449.1 MB, free: 4.805 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.1388, allocations: 0.6731 MB / 449.7 MB, free: 4.105 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.175e-05/0.1388, allocations: 4.062 kB / 449.7 MB, free: 4.102 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.732e-05/0.1388, allocations: 11.44 kB / 449.8 MB, free: 4.094 MB / 382.1 MB Notification: Performance of SimCode: time 1.413e-06/0.1388, allocations: 0 / 449.8 MB, free: 4.094 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1973/0.3361, allocations: 4.221 MB / 454 MB, free: 48.68 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001302/0.3363, allocations: 227.1 kB / 454.2 MB, free: 48.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.828/2.164, allocations: 0 / 454.2 MB, free: 48.43 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches