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.001398/0.001398, allocations: 114 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001763/0.001763, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.4 MB, free: 10.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2369/0.2369, allocations: 46.1 MB / 343.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 80.06 kB / 417.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1422, allocations: 62.44 MB / 479.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002091/0.1443, allocations: 0.5593 MB / 480.2 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003369/0.1477, allocations: 2.024 MB / 482.2 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.481e-05/0.1478, allocations: 0 / 482.2 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.029e-05/0.1478, allocations: 4 kB / 482.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.08e-06/0.1478, allocations: 0 / 482.2 MB, free: 2.891 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.001718/0.1496, allocations: 466.5 kB / 482.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.649e-05/0.1496, allocations: 0 / 482.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.934e-05/0.1497, allocations: 0 / 482.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.955e-05/0.1497, allocations: 4 kB / 482.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.347e-05/0.1497, allocations: 4 kB / 482.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.1497, allocations: 3.984 kB / 482.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001239/0.151, allocations: 0.6748 MB / 483.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.768e-06/0.151, allocations: 3.938 kB / 483.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.815e-05/0.151, allocations: 3.984 kB / 483.3 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008709/0.1519, allocations: 407.1 kB / 483.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1519, allocations: 0 / 483.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1519, allocations: 0 / 483.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.152, allocations: 0 / 483.7 MB, free: 1.344 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.0005631/0.1525, allocations: 413.2 kB / 484.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.1526, allocations: 12.03 kB / 484.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.791e-05/0.1526, allocations: 34.75 kB / 484.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.938e-05/0.1527, allocations: 0.9375 kB / 484.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.1528, allocations: 164.4 kB / 484.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.1528, allocations: 8.312 kB / 484.3 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-06/0.1528, allocations: 4.375 kB / 484.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.1529, allocations: 33.83 kB / 484.4 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.689e-06/0.153, allocations: 0 / 484.4 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.906e-06/0.153, allocations: 3.938 kB / 484.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.153, allocations: 0 / 484.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.34e-05/0.153, allocations: 0 / 484.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002594/0.1533, allocations: 236.9 kB / 484.6 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.854e-05/0.1533, allocations: 22.61 kB / 484.6 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.811e-05/0.1534, allocations: 16.91 kB / 484.7 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.1534, allocations: 0 / 484.7 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.352e-05/0.1535, allocations: 60.2 kB / 484.7 MB, free: 176 kB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1535, allocations: 0 / 484.7 MB, free: 176 kB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002157/0.1537, allocations: 75.48 kB / 484.8 MB, free: 88 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.1538, allocations: 77.11 kB / 484.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.417e-05/0.1538, allocations: 89.86 kB / 485 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.1539, allocations: 25.7 kB / 485 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.054e-05/0.1539, allocations: 84.14 kB / 485.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.754e-05/0.1539, allocations: 3.906 kB / 485.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.527e-05/0.154, allocations: 17.66 kB / 485.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1541, allocations: 314.8 kB / 485.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.388e-05/0.1541, allocations: 4.031 kB / 485.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.072e-05/0.1542, allocations: 7.984 kB / 485.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.267e-05/0.1542, allocations: 68.2 kB / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1542, allocations: 3.938 kB / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.534e-05/0.1543, allocations: 63.41 kB / 485.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.682e-05/0.1544, allocations: 37.69 kB / 485.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1544, allocations: 0 / 485.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.1544, allocations: 0 / 485.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.686e-05/0.1544, allocations: 0 / 485.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1544, allocations: 4.094 kB / 485.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.621e-05/0.1545, allocations: 0 / 485.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.1545, allocations: 8 kB / 485.6 MB, free: 15.21 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 9.613e-05/0.1546, allocations: 135.5 kB / 485.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.491e-05/0.1546, allocations: 4 kB / 485.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.495e-05/0.1546, allocations: 3.125 kB / 485.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1546, allocations: 0 / 485.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1547, allocations: 3.938 kB / 485.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1547, allocations: 3.984 kB / 485.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002924/0.155, allocations: 304.3 kB / 486 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.155, allocations: 0 / 486 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.739e-06/0.155, allocations: 0 / 486 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.155, allocations: 3.938 kB / 486 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.155, allocations: 0 / 486 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.155, allocations: 0 / 486 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.155, allocations: 4 kB / 486 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001225/0.1551, allocations: 177.1 kB / 486.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.39e-05/0.1552, allocations: 77.11 kB / 486.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/0.1552, allocations: 0 / 486.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.623e-05/0.1553, allocations: 4 kB / 486.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.826e-05/0.1553, allocations: 7.969 kB / 486.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.1553, allocations: 0 / 486.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.979e-05/0.1553, allocations: 79.28 kB / 486.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1553, allocations: 0 / 486.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005479/0.1559, allocations: 127.9 kB / 486.5 MB, free: 14.18 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.001394/0.1573, allocations: 0.9226 MB / 487.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001286/0.1574, allocations: 67.39 kB / 487.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.1575, allocations: 0 / 487.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.932e-05/0.1575, allocations: 55.41 kB / 487.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002053/0.1577, allocations: 4 kB / 487.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.1589, allocations: 1.192 MB / 488.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.1593, allocations: 0.6729 MB / 489.4 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.986e-05/0.1593, allocations: 7.922 kB / 489.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.138e-05/0.1593, allocations: 11.44 kB / 489.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1593, allocations: 0 / 489.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02139/0.1807, allocations: 4.419 MB / 493.8 MB, free: 6.77 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002255/0.181, allocations: 231.3 kB / 494.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.023/2.204, allocations: 0 / 494.1 MB, free: 6.516 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