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.001494/0.001494, allocations: 108.1 kB / 17.33 MB, free: 6.02 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.001789/0.001789, allocations: 193.3 kB / 18.24 MB, free: 5.109 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.495/1.495, allocations: 222.9 MB / 241.9 MB, free: 15.43 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.2179/0.2179, allocations: 44.18 MB / 336.2 MB, free: 2.949 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 65.92 kB / 408 MB, free: 27.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.132, allocations: 60.83 MB / 468.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002373/0.1344, allocations: 0.5605 MB / 469.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003559/0.138, allocations: 1.991 MB / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.768e-05/0.138, allocations: 0 / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.145e-05/0.1381, allocations: 0 / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.191e-06/0.1381, allocations: 0 / 471.4 MB, free: 12.08 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.001948/0.1401, allocations: 457.6 kB / 471.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.161e-05/0.1401, allocations: 7.984 kB / 471.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.15e-05/0.1402, allocations: 4 kB / 471.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.311e-05/0.1402, allocations: 3.984 kB / 471.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.311e-05/0.1403, allocations: 0 / 471.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.566e-06/0.1403, allocations: 0 / 471.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001206/0.1415, allocations: 0.667 MB / 472.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.366e-05/0.1415, allocations: 3.984 kB / 472.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.381e-05/0.1415, allocations: 4 kB / 472.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007557/0.1423, allocations: 391.1 kB / 472.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1423, allocations: 0 / 472.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1423, allocations: 4 kB / 472.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.1423, allocations: 0 / 472.9 MB, free: 10.56 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.0006014/0.1429, allocations: 405.3 kB / 473.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.143, allocations: 11.97 kB / 473.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.977e-05/0.1431, allocations: 34.73 kB / 473.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.066e-05/0.1431, allocations: 4.938 kB / 473.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.1432, allocations: 160.4 kB / 473.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.1432, allocations: 4.375 kB / 473.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.022e-05/0.1433, allocations: 384 / 473.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.1434, allocations: 41.81 kB / 473.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1434, allocations: 7.922 kB / 473.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.1434, allocations: 0 / 473.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.1434, allocations: 0 / 473.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.732e-05/0.1435, allocations: 4 kB / 473.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002586/0.1437, allocations: 228.9 kB / 473.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.529e-05/0.1438, allocations: 22.56 kB / 473.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.66e-05/0.1438, allocations: 16.92 kB / 473.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.141e-05/0.1439, allocations: 0 / 473.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.138e-05/0.1439, allocations: 60.2 kB / 473.9 MB, free: 9.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.1439, allocations: 0 / 473.9 MB, free: 9.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002036/0.1441, allocations: 71.39 kB / 473.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.1442, allocations: 81.11 kB / 474 MB, free: 9.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.636e-05/0.1442, allocations: 89.98 kB / 474.1 MB, free: 9.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.32e-05/0.1443, allocations: 29.7 kB / 474.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.921e-05/0.1444, allocations: 80.14 kB / 474.2 MB, free: 9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.1444, allocations: 3.906 kB / 474.2 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.501e-05/0.1444, allocations: 17.72 kB / 474.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.1446, allocations: 314.8 kB / 474.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.223e-05/0.1447, allocations: 4 kB / 474.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.105e-05/0.1447, allocations: 7.938 kB / 474.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.1448, allocations: 72.27 kB / 474.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1448, allocations: 3.938 kB / 474.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.308e-05/0.1449, allocations: 71.39 kB / 474.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/0.1449, allocations: 29.7 kB / 474.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.1449, allocations: 0 / 474.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.145, allocations: 0 / 474.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-05/0.145, allocations: 0 / 474.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.145, allocations: 4 kB / 474.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.854e-05/0.145, allocations: 0 / 474.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.145, allocations: 3.938 kB / 474.7 MB, free: 8.43 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.0001042/0.1451, allocations: 143.5 kB / 474.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.768e-05/0.1452, allocations: 7.969 kB / 474.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.913e-05/0.1452, allocations: 7.078 kB / 474.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1452, allocations: 3.938 kB / 474.9 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1452, allocations: 0 / 474.9 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.1452, allocations: 0 / 474.9 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004032/0.1456, allocations: 300.3 kB / 475.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1456, allocations: 0 / 475.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.779e-06/0.1457, allocations: 4.031 kB / 475.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1457, allocations: 0 / 475.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.308e-06/0.1457, allocations: 4 kB / 475.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1457, allocations: 0 / 475.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1457, allocations: 3.984 kB / 475.2 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001245/0.1458, allocations: 165.1 kB / 475.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.22e-05/0.1459, allocations: 85 kB / 475.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.1459, allocations: 8.031 kB / 475.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.546e-05/0.1459, allocations: 0 / 475.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.614e-05/0.146, allocations: 0 / 475.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.146, allocations: 0 / 475.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.066e-05/0.146, allocations: 79.28 kB / 475.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.146, allocations: 0 / 475.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005283/0.1466, allocations: 131.9 kB / 475.7 MB, free: 7.387 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.001238/0.1478, allocations: 0.9097 MB / 476.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001204/0.1479, allocations: 67.44 kB / 476.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.148, allocations: 0 / 476.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.859e-05/0.148, allocations: 63.39 kB / 476.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.1482, allocations: 5.906 kB / 476.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.1493, allocations: 1.188 MB / 477.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.1497, allocations: 0.669 MB / 478.6 MB, free: 4.332 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.642e-05/0.1497, allocations: 4 kB / 478.6 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.783e-05/0.1497, allocations: 7.438 kB / 478.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1497, allocations: 4.031 kB / 478.6 MB, free: 4.316 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01834/0.1681, allocations: 4.27 MB / 482.8 MB, free: 144 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002493/0.1683, allocations: 229.8 kB / 483.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.92/2.088, allocations: 0 / 483.1 MB, free: 15.89 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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