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.001433/0.001433, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.001528/0.001529, allocations: 194 kB / 18.12 MB, free: 5.363 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.5/1.5, allocations: 222.9 MB / 241.8 MB, free: 13.85 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.2597/0.2597, allocations: 44.17 MB / 336.1 MB, free: 2.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 67.17 kB / 407.8 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1479, allocations: 60.82 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002321/0.1502, allocations: 0.5565 MB / 469.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003522/0.1538, allocations: 2.065 MB / 471.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.331e-05/0.1538, allocations: 4 kB / 471.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.924e-05/0.1539, allocations: 0 / 471.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.553e-06/0.1539, allocations: 0 / 471.3 MB, free: 12.09 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.0017/0.1556, allocations: 405.5 kB / 471.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.167e-05/0.1557, allocations: 0 / 471.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.924e-05/0.1557, allocations: 4 kB / 471.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.841e-05/0.1558, allocations: 0 / 471.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.214e-05/0.1558, allocations: 0 / 471.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.715e-06/0.1558, allocations: 7.938 kB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001377/0.1572, allocations: 0.667 MB / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.272e-05/0.1572, allocations: 3.938 kB / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.719e-05/0.1573, allocations: 7.938 kB / 472.3 MB, free: 11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001093/0.1584, allocations: 391.2 kB / 472.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1584, allocations: 0 / 472.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1584, allocations: 0 / 472.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1584, allocations: 4 kB / 472.7 MB, free: 10.61 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.0006519/0.1591, allocations: 409.2 kB / 473.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.1591, allocations: 8.031 kB / 473.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.523e-05/0.1592, allocations: 34.69 kB / 473.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.555e-05/0.1593, allocations: 4.938 kB / 473.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.1594, allocations: 168.4 kB / 473.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.1594, allocations: 384 / 473.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-06/0.1594, allocations: 384 / 473.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001309/0.1595, allocations: 37.81 kB / 473.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.1596, allocations: 0 / 473.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.1596, allocations: 0 / 473.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.1596, allocations: 4 kB / 473.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.663e-05/0.1596, allocations: 4 kB / 473.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002914/0.1599, allocations: 236.9 kB / 473.6 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.509e-05/0.16, allocations: 18.58 kB / 473.6 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.857e-05/0.16, allocations: 12.92 kB / 473.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.16, allocations: 0 / 473.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.1601, allocations: 60.27 kB / 473.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 2.655e-06/0.1602, allocations: 0 / 473.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.000243/0.1604, allocations: 75.33 kB / 473.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.1605, allocations: 81.11 kB / 473.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.991e-05/0.1605, allocations: 89.86 kB / 473.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.1606, allocations: 25.7 kB / 474 MB, free: 9.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.225e-05/0.1606, allocations: 80.14 kB / 474 MB, free: 9.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.354e-05/0.1606, allocations: 8.016 kB / 474.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-05/0.1607, allocations: 21.72 kB / 474.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1608, allocations: 310.8 kB / 474.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.254e-05/0.1608, allocations: 0 / 474.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.087e-05/0.1609, allocations: 4 kB / 474.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.704e-05/0.1609, allocations: 64.27 kB / 474.4 MB, free: 8.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.1609, allocations: 3.938 kB / 474.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.773e-05/0.161, allocations: 75.27 kB / 474.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.977e-05/0.1611, allocations: 37.8 kB / 474.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1611, allocations: 3.984 kB / 474.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.1611, allocations: 0 / 474.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.924e-05/0.1611, allocations: 7.938 kB / 474.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.1612, allocations: 0 / 474.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.063e-05/0.1612, allocations: 3.984 kB / 474.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.1612, allocations: 0 / 474.6 MB, free: 8.48 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.0001027/0.1613, allocations: 143.5 kB / 474.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.1613, allocations: 0 / 474.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.215e-05/0.1614, allocations: 11.08 kB / 474.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1614, allocations: 0 / 474.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1614, allocations: 0 / 474.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1614, allocations: 0 / 474.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002869/0.1617, allocations: 304.2 kB / 475 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1617, allocations: 3.984 kB / 475 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5e-06/0.1617, allocations: 0 / 475 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1617, allocations: 0 / 475 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.1617, allocations: 4 kB / 475 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1617, allocations: 4.031 kB / 475 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1617, allocations: 0 / 475 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001501/0.1619, allocations: 169.1 kB / 475.2 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.162, allocations: 85.11 kB / 475.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.162, allocations: 0 / 475.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.288e-05/0.162, allocations: 0 / 475.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.766e-05/0.162, allocations: 0 / 475.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.1621, allocations: 4 kB / 475.3 MB, free: 7.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.654e-05/0.1621, allocations: 83.25 kB / 475.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1621, allocations: 0 / 475.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005638/0.1627, allocations: 131.9 kB / 475.5 MB, free: 7.438 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.001407/0.1641, allocations: 0.9023 MB / 476.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001344/0.1642, allocations: 67.39 kB / 476.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1643, allocations: 0 / 476.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.523e-05/0.1643, allocations: 67.28 kB / 476.5 MB, free: 6.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002073/0.1645, allocations: 6.656 kB / 476.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.1659, allocations: 1.185 MB / 477.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.1662, allocations: 0.6692 MB / 478.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.782e-05/0.1662, allocations: 7.984 kB / 478.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.326e-05/0.1662, allocations: 7.438 kB / 478.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1662, allocations: 0 / 478.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02128/0.1875, allocations: 4.24 MB / 482.6 MB, free: 212 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003608/0.1879, allocations: 230.4 kB / 482.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.06/2.247, allocations: 64 / 482.9 MB, free: 15.95 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