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.00143/0.00143, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.00142/0.00142, allocations: 192 kB / 18.56 MB, free: 4.434 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.292/1.292, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2296/0.2296, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 60.31 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09204/0.09319, allocations: 60.82 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001668/0.09489, allocations: 0.4958 MB / 469.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002727/0.09763, allocations: 2.002 MB / 471.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.971e-05/0.09767, allocations: 0 / 471.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.989e-06/0.09769, allocations: 0 / 471.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.528e-06/0.09771, allocations: 0 / 471.9 MB, free: 11.76 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.001321/0.09903, allocations: 493.5 kB / 472.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.974e-05/0.09908, allocations: 4 kB / 472.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.492e-05/0.09913, allocations: 0 / 472.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.341e-05/0.09914, allocations: 0 / 472.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.01e-05/0.09917, allocations: 11.98 kB / 472.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.693e-06/0.09918, allocations: 0 / 472.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008658/0.1001, allocations: 0.6123 MB / 473 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.054e-06/0.1001, allocations: 3.938 kB / 473 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.077e-05/0.1001, allocations: 7.984 kB / 473 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004944/0.1006, allocations: 387.2 kB / 473.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1006, allocations: 0 / 473.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1006, allocations: 0 / 473.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.1006, allocations: 0 / 473.4 MB, free: 10.26 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.0004203/0.1011, allocations: 401.5 kB / 473.7 MB, free: 9.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.1011, allocations: 8.031 kB / 473.8 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.881e-05/0.1012, allocations: 34.75 kB / 473.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.203e-05/0.1012, allocations: 4.922 kB / 473.8 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.1013, allocations: 164.3 kB / 474 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-06/0.1013, allocations: 4.375 kB / 474 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.1013, allocations: 384 / 474 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.913e-05/0.1014, allocations: 37.83 kB / 474 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.1014, allocations: 3.938 kB / 474 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.1014, allocations: 0 / 474 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.1014, allocations: 4 kB / 474 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.017e-05/0.1015, allocations: 7.922 kB / 474 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001942/0.1017, allocations: 228.9 kB / 474.2 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.747e-05/0.1017, allocations: 26.59 kB / 474.3 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.036e-05/0.1018, allocations: 8.922 kB / 474.3 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.315e-06/0.1018, allocations: 0 / 474.3 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.1018, allocations: 64.27 kB / 474.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.1018, allocations: 0 / 474.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.000161/0.102, allocations: 71.42 kB / 474.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.102, allocations: 85.14 kB / 474.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.08e-05/0.1021, allocations: 89.86 kB / 474.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.1021, allocations: 25.7 kB / 474.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.863e-05/0.1021, allocations: 80.14 kB / 474.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.749e-05/0.1021, allocations: 3.906 kB / 474.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.778e-05/0.1022, allocations: 13.72 kB / 474.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.184e-05/0.1023, allocations: 314.8 kB / 475 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.226e-05/0.1023, allocations: 7.984 kB / 475 MB, free: 8.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.142e-06/0.1023, allocations: 4 kB / 475 MB, free: 8.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.458e-05/0.1024, allocations: 68.2 kB / 475.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1024, allocations: 3.938 kB / 475.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.66e-05/0.1024, allocations: 63.41 kB / 475.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.1025, allocations: 33.69 kB / 475.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1025, allocations: 4 kB / 475.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.1025, allocations: 4 kB / 475.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.304e-05/0.1025, allocations: 0 / 475.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.1025, allocations: 4.094 kB / 475.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.555e-05/0.1026, allocations: 3.938 kB / 475.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.1026, allocations: 0 / 475.2 MB, free: 8.141 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.000136/0.1027, allocations: 143.5 kB / 475.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.264e-05/0.1027, allocations: 0 / 475.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.567e-05/0.1028, allocations: 7.078 kB / 475.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1028, allocations: 7.984 kB / 475.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1028, allocations: 0 / 475.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1028, allocations: 3.984 kB / 475.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.103, allocations: 304.2 kB / 475.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1031, allocations: 0 / 475.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.697e-06/0.1031, allocations: 4 kB / 475.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1031, allocations: 0 / 475.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.1031, allocations: 0 / 475.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1031, allocations: 0 / 475.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1031, allocations: 0 / 475.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001847/0.1033, allocations: 189 kB / 475.8 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.512e-05/0.1034, allocations: 77.11 kB / 475.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.183e-05/0.1034, allocations: 0 / 475.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.921e-05/0.1034, allocations: 3.984 kB / 475.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.634e-05/0.1035, allocations: 4 kB / 475.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-06/0.1035, allocations: 0 / 475.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.115e-05/0.1035, allocations: 75.28 kB / 476 MB, free: 7.219 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1035, allocations: 0 / 476 MB, free: 7.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003986/0.1039, allocations: 123.9 kB / 476.1 MB, free: 7.098 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.001122/0.105, allocations: 0.9058 MB / 477 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001008/0.1051, allocations: 63.34 kB / 477.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1052, allocations: 0 / 477.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.303e-05/0.1052, allocations: 59.39 kB / 477.1 MB, free: 6.023 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.1054, allocations: 11.94 kB / 477.2 MB, free: 6.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008817/0.1063, allocations: 1.188 MB / 478.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.1067, allocations: 0.6729 MB / 479 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.408e-06/0.1067, allocations: 0 / 479 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.694e-05/0.1067, allocations: 11.44 kB / 479 MB, free: 4.027 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1067, allocations: 0 / 479 MB, free: 4.027 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1353/0.242, allocations: 4.337 MB / 483.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.053/9.295, allocations: 13 kB / 483.4 MB, free: 15.73 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