Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_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.001233/0.001233, allocations: 100 kB / 17.63 MB, free: 5.523 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.0012/0.001201, allocations: 192.1 kB / 18.56 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 222.9 MB / 242.2 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2249/0.2249, allocations: 44.17 MB / 336.6 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 57.31 kB / 408.5 MB, free: 27.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1403, allocations: 60.83 MB / 469.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001852/0.1422, allocations: 0.4919 MB / 469.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002726/0.145, allocations: 1.998 MB / 471.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.534e-05/0.145, allocations: 0 / 471.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.14e-05/0.145, allocations: 0 / 471.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.689e-06/0.1451, allocations: 0 / 471.8 MB, free: 11.8 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.1465, allocations: 0.4904 MB / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.642e-05/0.1465, allocations: 3.984 kB / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.731e-05/0.1466, allocations: 0 / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.578e-05/0.1466, allocations: 4 kB / 472.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.725e-05/0.1466, allocations: 4 kB / 472.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.793e-06/0.1466, allocations: 0 / 472.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000964/0.1476, allocations: 0.6162 MB / 473 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.637e-06/0.1476, allocations: 4 kB / 473 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.857e-05/0.1477, allocations: 0 / 473 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005529/0.1482, allocations: 383.3 kB / 473.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1482, allocations: 0 / 473.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1482, allocations: 3.938 kB / 473.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1482, allocations: 0 / 473.3 MB, free: 10.3 MB / 350.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.0004559/0.1487, allocations: 401.5 kB / 473.7 MB, free: 9.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.1488, allocations: 12.03 kB / 473.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.622e-05/0.1488, allocations: 30.75 kB / 473.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.515e-05/0.1488, allocations: 0.9375 kB / 473.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.284e-05/0.1489, allocations: 168.3 kB / 473.9 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.149, allocations: 4.375 kB / 473.9 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.149, allocations: 8.312 kB / 474 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.1491, allocations: 37.81 kB / 474 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.1491, allocations: 0 / 474 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-06/0.1491, allocations: 4 kB / 474 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.1491, allocations: 3.984 kB / 474 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.986e-05/0.1492, allocations: 0 / 474 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002414/0.1494, allocations: 236.9 kB / 474.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.64e-05/0.1495, allocations: 22.55 kB / 474.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.422e-05/0.1495, allocations: 8.922 kB / 474.3 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.1495, allocations: 4 kB / 474.3 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.215e-05/0.1496, allocations: 64.25 kB / 474.3 MB, free: 9.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.262e-06/0.1496, allocations: 0 / 474.3 MB, free: 9.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001997/0.1498, allocations: 71.34 kB / 474.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.1499, allocations: 81.11 kB / 474.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.904e-05/0.1499, allocations: 89.86 kB / 474.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.1499, allocations: 25.7 kB / 474.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.039e-05/0.15, allocations: 80.14 kB / 474.7 MB, free: 8.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.15, allocations: 11.89 kB / 474.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.884e-05/0.15, allocations: 9.719 kB / 474.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1502, allocations: 318.8 kB / 475 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.225e-05/0.1502, allocations: 4.125 kB / 475 MB, free: 8.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.582e-06/0.1502, allocations: 0 / 475 MB, free: 8.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.396e-05/0.1503, allocations: 64.27 kB / 475.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1503, allocations: 3.938 kB / 475.1 MB, free: 8.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.896e-05/0.1504, allocations: 71.33 kB / 475.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.1504, allocations: 33.7 kB / 475.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.1504, allocations: 0 / 475.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.1504, allocations: 0 / 475.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.609e-05/0.1505, allocations: 0 / 475.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1505, allocations: 4.094 kB / 475.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.674e-05/0.1505, allocations: 0 / 475.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.1505, allocations: 7.984 kB / 475.2 MB, free: 8.176 MB / 350.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.0001102/0.1506, allocations: 143.5 kB / 475.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.469e-05/0.1507, allocations: 0 / 475.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.645e-05/0.1507, allocations: 15.02 kB / 475.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1507, allocations: 0 / 475.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1507, allocations: 3.938 kB / 475.3 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1507, allocations: 4 kB / 475.3 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002674/0.151, allocations: 308.2 kB / 475.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.151, allocations: 0 / 475.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.417e-06/0.151, allocations: 0 / 475.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.151, allocations: 0 / 475.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.151, allocations: 0 / 475.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.151, allocations: 3.984 kB / 475.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.151, allocations: 0 / 475.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001353/0.1512, allocations: 181.1 kB / 475.8 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.1512, allocations: 77.11 kB / 475.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.1512, allocations: 0 / 475.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.668e-05/0.1513, allocations: 4 kB / 475.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.043e-05/0.1513, allocations: 0 / 475.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.1513, allocations: 0 / 475.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.169e-05/0.1513, allocations: 75.28 kB / 476 MB, free: 7.258 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.1514, allocations: 0 / 476 MB, free: 7.258 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004871/0.1518, allocations: 127.9 kB / 476.1 MB, free: 7.133 MB / 350.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.001126/0.153, allocations: 0.91 MB / 477 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000113/0.1531, allocations: 63.39 kB / 477.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1531, allocations: 0 / 477.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.147e-05/0.1532, allocations: 63.33 kB / 477.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.1534, allocations: 10.5 kB / 477.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009726/0.1544, allocations: 1.191 MB / 478.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.1546, allocations: 0.6768 MB / 479 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.011e-05/0.1546, allocations: 0 / 479 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.867e-05/0.1547, allocations: 11.44 kB / 479 MB, free: 4.051 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1547, allocations: 0 / 479 MB, free: 4.051 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.1766, allocations: 4.341 MB / 483.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.83/8.007, allocations: 17.06 kB / 483.4 MB, free: 15.75 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches