Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001099/0.001099, allocations: 105.7 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001115/0.001115, allocations: 209.7 kB / 18.14 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2306/0.2306, allocations: 46.1 MB / 343.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 81.77 kB / 416.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1506, allocations: 62.45 MB / 479.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001824/0.1525, allocations: 0.5585 MB / 479.9 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002943/0.1554, allocations: 2.108 MB / 482.1 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.616e-05/0.1555, allocations: 3.938 kB / 482.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.974e-05/0.1555, allocations: 0 / 482.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.179e-06/0.1555, allocations: 0 / 482.1 MB, free: 2.949 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001227/0.1567, allocations: 407 kB / 482.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.883e-05/0.1568, allocations: 7.938 kB / 482.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.34e-05/0.1568, allocations: 0 / 482.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.601e-05/0.1569, allocations: 0 / 482.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.885e-05/0.1569, allocations: 0 / 482.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.01e-05/0.1569, allocations: 0 / 482.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001024/0.1579, allocations: 0.6865 MB / 483.1 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.406e-06/0.1579, allocations: 0 / 483.1 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.788e-05/0.158, allocations: 0 / 483.1 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006016/0.1586, allocations: 411.1 kB / 483.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1586, allocations: 0 / 483.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1586, allocations: 3.938 kB / 483.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.1586, allocations: 0 / 483.6 MB, free: 1.453 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.0004291/0.1591, allocations: 405.3 kB / 483.9 MB, free: 1.004 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.1591, allocations: 8.875 kB / 484 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.434e-05/0.1592, allocations: 38.73 kB / 484 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.605e-05/0.1592, allocations: 4.938 kB / 484 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.688e-05/0.1593, allocations: 160.4 kB / 484.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.1593, allocations: 4.312 kB / 484.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.1593, allocations: 384 / 484.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.119e-05/0.1594, allocations: 37.83 kB / 484.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.1594, allocations: 0 / 484.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.094e-06/0.1595, allocations: 0 / 484.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.1595, allocations: 7.984 kB / 484.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.926e-05/0.1595, allocations: 8 kB / 484.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002412/0.1597, allocations: 224.9 kB / 484.4 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.264e-05/0.1598, allocations: 30.53 kB / 484.5 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.536e-05/0.1598, allocations: 8.922 kB / 484.5 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.217e-06/0.1598, allocations: 0 / 484.5 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.411e-05/0.1599, allocations: 72.25 kB / 484.5 MB, free: 288 kB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 3.437e-06/0.1599, allocations: 3.984 kB / 484.5 MB, free: 284 kB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001867/0.1601, allocations: 71.33 kB / 484.6 MB, free: 200 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.1602, allocations: 81.05 kB / 484.7 MB, free: 100 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.116e-05/0.1602, allocations: 93.86 kB / 484.8 MB, free: 16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.1602, allocations: 25.7 kB / 484.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.641e-05/0.1603, allocations: 80.14 kB / 484.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.1603, allocations: 7.844 kB / 484.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.288e-05/0.1604, allocations: 17.84 kB / 484.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1605, allocations: 314.8 kB / 485.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.472e-05/0.1605, allocations: 8 kB / 485.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.883e-06/0.1605, allocations: 0 / 485.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.058e-05/0.1606, allocations: 60.27 kB / 485.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1606, allocations: 7.938 kB / 485.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.41e-05/0.1606, allocations: 67.39 kB / 485.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.1607, allocations: 29.7 kB / 485.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.1607, allocations: 4.094 kB / 485.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.1607, allocations: 7.938 kB / 485.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.522e-05/0.1607, allocations: 0 / 485.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/0.1608, allocations: 0 / 485.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.501e-05/0.1608, allocations: 0 / 485.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-06/0.1608, allocations: 0 / 485.4 MB, free: 15.32 MB / 366.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 8.489e-05/0.1609, allocations: 143.5 kB / 485.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.219e-05/0.1609, allocations: 0 / 485.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.635e-05/0.1609, allocations: 7.109 kB / 485.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1609, allocations: 4 kB / 485.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.161, allocations: 4 kB / 485.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.161, allocations: 0 / 485.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002291/0.1612, allocations: 292.3 kB / 485.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1612, allocations: 0 / 485.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.461e-06/0.1612, allocations: 3.938 kB / 485.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.1612, allocations: 4 kB / 485.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.1612, allocations: 0 / 485.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1612, allocations: 0 / 485.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1612, allocations: 32 / 485.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000128/0.1614, allocations: 181.1 kB / 486 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.476e-05/0.1614, allocations: 77.11 kB / 486.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.1614, allocations: 3.984 kB / 486.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.972e-05/0.1615, allocations: 3.938 kB / 486.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.087e-05/0.1615, allocations: 4 kB / 486.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.1615, allocations: 4 kB / 486.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.423e-05/0.1616, allocations: 79.31 kB / 486.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1616, allocations: 0 / 486.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004165/0.162, allocations: 135.9 kB / 486.3 MB, free: 14.28 MB / 366.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.001146/0.1631, allocations: 0.9181 MB / 487.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001075/0.1633, allocations: 63.39 kB / 487.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1633, allocations: 0 / 487.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.919e-05/0.1633, allocations: 63.41 kB / 487.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001992/0.1635, allocations: 128 / 487.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009682/0.1645, allocations: 1.189 MB / 488.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.1648, allocations: 0.677 MB / 489.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.414e-05/0.1648, allocations: 0 / 489.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.691e-05/0.1648, allocations: 11.38 kB / 489.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1649, allocations: 0 / 489.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.1812, allocations: 4.384 MB / 493.6 MB, free: 6.887 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.1815, allocations: 228.2 kB / 493.9 MB, free: 6.633 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.949/2.131, allocations: 3.938 kB / 493.9 MB, free: 6.629 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches