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.0008046/0.0008046, allocations: 96.02 kB / 17.35 MB, free: 6.367 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.0009443/0.0009443, allocations: 176.1 kB / 18.25 MB, free: 5.523 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.334/1.334, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2175/0.2175, allocations: 44.25 MB / 337.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004246/0.0004247, allocations: 9.875 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.108, allocations: 61.91 MB / 472.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0006235/0.1086, allocations: 230.9 kB / 472.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00279/0.1115, allocations: 2.049 MB / 474.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.079e-05/0.1115, allocations: 7.938 kB / 474.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.317e-05/0.1115, allocations: 0 / 474.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.961e-06/0.1115, allocations: 0 / 474.6 MB, free: 10.97 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.001295/0.1128, allocations: 407 kB / 475 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.089e-05/0.1129, allocations: 0 / 475 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.079e-05/0.1129, allocations: 4 kB / 475 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.774e-05/0.1129, allocations: 0 / 475 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.861e-05/0.113, allocations: 0 / 475 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.623e-06/0.113, allocations: 0 / 475 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.1141, allocations: 0.6709 MB / 475.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.825e-06/0.1141, allocations: 0 / 475.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.892e-05/0.1142, allocations: 29.64 kB / 475.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006646/0.1148, allocations: 399.1 kB / 476.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1149, allocations: 4 kB / 476.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1149, allocations: 0 / 476.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1149, allocations: 0 / 476.1 MB, free: 9.473 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.0005251/0.1154, allocations: 397.3 kB / 476.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.1155, allocations: 12.03 kB / 476.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.006e-05/0.1155, allocations: 38.73 kB / 476.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.169e-05/0.1156, allocations: 8.875 kB / 476.6 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.1157, allocations: 160.4 kB / 476.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.1157, allocations: 4.312 kB / 476.7 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.1157, allocations: 4.375 kB / 476.7 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.1158, allocations: 29.83 kB / 476.8 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.1158, allocations: 4 kB / 476.8 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.1159, allocations: 0 / 476.8 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1159, allocations: 3.984 kB / 476.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.972e-05/0.1159, allocations: 0 / 476.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002739/0.1162, allocations: 236.8 kB / 477 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.092e-05/0.1162, allocations: 22.59 kB / 477 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.825e-05/0.1163, allocations: 12.92 kB / 477 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.1163, allocations: 4 kB / 477 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.631e-05/0.1163, allocations: 56.27 kB / 477.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.402e-06/0.1163, allocations: 4 kB / 477.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002064/0.1166, allocations: 75.33 kB / 477.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.1166, allocations: 77.11 kB / 477.3 MB, free: 8.133 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.745e-05/0.1167, allocations: 89.86 kB / 477.3 MB, free: 8.035 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.1167, allocations: 25.7 kB / 477.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.76e-05/0.1167, allocations: 80.14 kB / 477.4 MB, free: 7.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.1168, allocations: 7.906 kB / 477.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.431e-05/0.1168, allocations: 13.72 kB / 477.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1169, allocations: 315 kB / 477.8 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.771e-05/0.1169, allocations: 3.984 kB / 477.8 MB, free: 7.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.071e-06/0.117, allocations: 4 kB / 477.8 MB, free: 7.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.356e-05/0.117, allocations: 64.27 kB / 477.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.117, allocations: 3.938 kB / 477.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.978e-05/0.1171, allocations: 71.33 kB / 477.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.1172, allocations: 32.2 kB / 478 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1172, allocations: 0 / 478 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.1172, allocations: 96 / 478 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.794e-05/0.1172, allocations: 8 kB / 478 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.1172, allocations: 0 / 478 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.995e-05/0.1172, allocations: 4 kB / 478 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.1173, allocations: 3.938 kB / 478 MB, free: 7.355 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 9.715e-05/0.1174, allocations: 139.5 kB / 478.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.227e-05/0.1174, allocations: 0 / 478.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.323e-05/0.1174, allocations: 11.06 kB / 478.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.1174, allocations: 7.922 kB / 478.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1174, allocations: 0 / 478.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1174, allocations: 4 kB / 478.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003093/0.1178, allocations: 300.2 kB / 478.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1178, allocations: 0 / 478.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.703e-06/0.1178, allocations: 4 kB / 478.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1178, allocations: 0 / 478.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.1178, allocations: 8 kB / 478.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1178, allocations: 0 / 478.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1178, allocations: 0 / 478.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/0.1179, allocations: 177.1 kB / 478.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.031e-05/0.118, allocations: 81.11 kB / 478.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.118, allocations: 3.984 kB / 478.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.8e-05/0.1181, allocations: 0 / 478.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.284e-05/0.1181, allocations: 0 / 478.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.1181, allocations: 4 kB / 478.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.033e-05/0.1181, allocations: 75.28 kB / 478.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1181, allocations: 3.938 kB / 478.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005443/0.1187, allocations: 128 kB / 478.9 MB, free: 6.309 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.001375/0.1201, allocations: 0.8984 MB / 479.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001074/0.1202, allocations: 59.41 kB / 479.8 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.1202, allocations: 0 / 479.8 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.084e-05/0.1203, allocations: 71.33 kB / 479.9 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001869/0.1205, allocations: 3.938 kB / 479.9 MB, free: 5.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.1215, allocations: 1.189 MB / 481.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.1218, allocations: 0.6731 MB / 481.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.285e-05/0.1218, allocations: 0 / 481.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.247e-05/0.1218, allocations: 11.44 kB / 481.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1218, allocations: 0 / 481.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01701/0.1388, allocations: 4.156 MB / 486 MB, free: 15.19 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002498/0.1391, allocations: 225.8 kB / 486.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/1.966, allocations: 4 kB / 486.2 MB, free: 14.94 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