Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 117.1 kB / 18.49 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 209.5 kB / 21.46 MB, free: 1.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.42/1.42, allocations: 230.6 MB / 254.8 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2201/0.2201, allocations: 46.92 MB / 357.8 MB, free: 10.41 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 67.88 kB / 0.4916 GB, free: 8.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1208, allocations: 65.99 MB / 0.5561 GB, free: 5.941 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001518/0.1223, allocations: 0.497 MB / 0.5565 GB, free: 5.441 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002701/0.125, allocations: 2.053 MB / 0.5585 GB, free: 3.367 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.416e-05/0.125, allocations: 0 / 0.5585 GB, free: 3.367 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.251e-05/0.125, allocations: 0 / 0.5585 GB, free: 3.367 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.32e-06/0.125, allocations: 0 / 0.5585 GB, free: 3.367 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001287/0.1263, allocations: 0.494 MB / 0.559 GB, free: 2.875 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 3.859e-05/0.1264, allocations: 0 / 0.559 GB, free: 2.875 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.204e-05/0.1264, allocations: 0 / 0.559 GB, free: 2.875 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.421e-05/0.1264, allocations: 7.938 kB / 0.559 GB, free: 2.867 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.393e-05/0.1264, allocations: 0 / 0.559 GB, free: 2.867 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.411e-06/0.1264, allocations: 0 / 0.559 GB, free: 2.867 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009752/0.1274, allocations: 0.6785 MB / 0.5597 GB, free: 2.188 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.131e-06/0.1274, allocations: 0 / 0.5597 GB, free: 2.188 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.812e-05/0.1274, allocations: 7.984 kB / 0.5597 GB, free: 2.18 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005129/0.128, allocations: 383.1 kB / 0.5601 GB, free: 1.805 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.128, allocations: 7.938 kB / 0.5601 GB, free: 1.797 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.128, allocations: 0 / 0.5601 GB, free: 1.797 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.128, allocations: 0 / 0.5601 GB, free: 1.797 MB / 414.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.0004452/0.1284, allocations: 408.6 kB / 0.5605 GB, free: 1.344 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.1284, allocations: 12.03 kB / 0.5605 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.496e-05/0.1285, allocations: 192 / 0.5605 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.149e-05/0.1285, allocations: 34.7 kB / 0.5605 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.892e-05/0.1285, allocations: 0.9375 kB / 0.5605 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.1286, allocations: 168.3 kB / 0.5607 GB, free: 1.086 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.1286, allocations: 4.375 kB / 0.5607 GB, free: 1.082 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.932e-06/0.1286, allocations: 384 / 0.5607 GB, free: 1.082 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.842e-05/0.1287, allocations: 41.62 kB / 0.5607 GB, free: 1.035 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.1287, allocations: 0 / 0.5607 GB, free: 1.035 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.972e-06/0.1287, allocations: 0 / 0.5607 GB, free: 1.035 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1287, allocations: 0 / 0.5607 GB, free: 1.035 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.959e-05/0.1288, allocations: 4 kB / 0.5607 GB, free: 1.031 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002238/0.129, allocations: 232.9 kB / 0.5609 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.421e-05/0.129, allocations: 26.52 kB / 0.561 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.014e-05/0.1291, allocations: 8.922 kB / 0.561 GB, free: 0.707 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.11e-06/0.1291, allocations: 0 / 0.561 GB, free: 0.707 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.663e-05/0.1291, allocations: 68.19 kB / 0.561 GB, free: 0.625 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.1291, allocations: 3.938 kB / 0.5611 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001718/0.1293, allocations: 63.41 kB / 0.5611 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.1293, allocations: 89.17 kB / 0.5612 GB, free: 452 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.206e-05/0.1294, allocations: 89.86 kB / 0.5613 GB, free: 352 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.1294, allocations: 25.7 kB / 0.5613 GB, free: 320 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.233e-05/0.1294, allocations: 88.12 kB / 0.5614 GB, free: 228 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.1295, allocations: 11.88 kB / 0.5614 GB, free: 216 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.1295, allocations: 13.72 kB / 0.5614 GB, free: 196 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1296, allocations: 314.8 kB / 0.5617 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.095e-05/0.1296, allocations: 0 / 0.5617 GB, free: 15.88 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.186e-06/0.1297, allocations: 8 kB / 0.5617 GB, free: 15.87 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.13e-05/0.1297, allocations: 64.2 kB / 0.5618 GB, free: 15.79 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1297, allocations: 3.984 kB / 0.5618 GB, free: 15.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.476e-05/0.1298, allocations: 75.34 kB / 0.5619 GB, free: 15.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/0.1298, allocations: 29.7 kB / 0.5619 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.1298, allocations: 0 / 0.5619 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.1298, allocations: 0 / 0.5619 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.084e-05/0.1299, allocations: 0 / 0.5619 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.1299, allocations: 0 / 0.5619 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.95e-05/0.1299, allocations: 12.08 kB / 0.5619 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/0.1299, allocations: 0 / 0.5619 GB, free: 15.65 MB / 430.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 9.218e-05/0.13, allocations: 139.5 kB / 0.562 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.201e-05/0.13, allocations: 4 kB / 0.562 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.034e-05/0.13, allocations: 3.125 kB / 0.562 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.13, allocations: 0 / 0.562 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.13, allocations: 0 / 0.562 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.13, allocations: 0 / 0.562 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002604/0.1303, allocations: 304.3 kB / 0.5623 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1303, allocations: 7.922 kB / 0.5623 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.617e-06/0.1303, allocations: 0 / 0.5623 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1303, allocations: 0 / 0.5623 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-06/0.1303, allocations: 0 / 0.5623 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1303, allocations: 0 / 0.5623 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1303, allocations: 4 kB / 0.5623 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001245/0.1304, allocations: 169.2 kB / 0.5625 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.9e-05/0.1304, allocations: 85.11 kB / 0.5626 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.1305, allocations: 4 kB / 0.5626 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.761e-05/0.1305, allocations: 0 / 0.5626 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.245e-05/0.1305, allocations: 0 / 0.5626 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-06/0.1305, allocations: 0 / 0.5626 GB, free: 14.83 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.586e-05/0.1306, allocations: 79.25 kB / 0.5627 GB, free: 14.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1306, allocations: 0 / 0.5627 GB, free: 14.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004144/0.131, allocations: 139.5 kB / 0.5628 GB, free: 14.62 MB / 430.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.00107/0.132, allocations: 0.9186 MB / 0.5637 GB, free: 13.67 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.1321, allocations: 63.41 kB / 0.5638 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1321, allocations: 0 / 0.5638 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.341e-05/0.1322, allocations: 63.33 kB / 0.5638 GB, free: 13.52 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000185/0.1324, allocations: 4 kB / 0.5638 GB, free: 13.52 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009892/0.1334, allocations: 1.191 MB / 0.565 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/0.1336, allocations: 0.6767 MB / 0.5656 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.796e-06/0.1336, allocations: 0 / 0.5656 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.719e-05/0.1337, allocations: 15.5 kB / 0.5657 GB, free: 11.52 MB / 430.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1337, allocations: 0 / 0.5657 GB, free: 11.52 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01977/0.1534, allocations: 4.57 MB / 0.5701 GB, free: 7.039 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.157/8.31, allocations: 8.031 kB / 0.5701 GB, free: 7.039 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.15033208701061]