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.001251/0.001251, allocations: 95.22 kB / 17.35 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 202.2 kB / 18.28 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2192/0.2192, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002407/0.0002407, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1259, allocations: 63.56 MB / 483.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0009454/0.1268, allocations: 234.8 kB / 483.4 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003565/0.1304, allocations: 2.077 MB / 485.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.275e-05/0.1305, allocations: 0 / 485.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.384e-05/0.1305, allocations: 4 kB / 485.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.971e-06/0.1305, allocations: 0 / 485.5 MB, free: 1.727 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.00148/0.132, allocations: 410.4 kB / 485.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.521e-05/0.1321, allocations: 4 kB / 485.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.976e-05/0.1321, allocations: 0 / 485.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.702e-05/0.1321, allocations: 0 / 485.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.81e-05/0.1321, allocations: 0 / 485.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.674e-06/0.1322, allocations: 0 / 485.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001132/0.1333, allocations: 0.6904 MB / 486.6 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.969e-06/0.1333, allocations: 0 / 486.6 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.002e-05/0.1334, allocations: 29.64 kB / 486.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007276/0.1341, allocations: 403.1 kB / 487 MB, free: 208 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1341, allocations: 3.984 kB / 487 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.496e-06/0.1341, allocations: 4 kB / 487 MB, free: 200 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.1341, allocations: 0 / 487 MB, free: 200 kB / 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.0005129/0.1347, allocations: 409.2 kB / 487.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.1347, allocations: 8.875 kB / 487.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.827e-05/0.1348, allocations: 30.75 kB / 487.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.682e-05/0.1348, allocations: 0.9375 kB / 487.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.1349, allocations: 164.4 kB / 487.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.1349, allocations: 4.375 kB / 487.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.375e-06/0.1349, allocations: 384 / 487.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.1351, allocations: 45.73 kB / 487.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.1351, allocations: 0 / 487.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-06/0.1351, allocations: 0 / 487.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.1351, allocations: 0 / 487.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.396e-05/0.1351, allocations: 4 kB / 487.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002639/0.1354, allocations: 236.9 kB / 487.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.258e-05/0.1355, allocations: 22.58 kB / 487.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.317e-05/0.1355, allocations: 8.922 kB / 487.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.1355, allocations: 3.938 kB / 487.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.1356, allocations: 60.27 kB / 488 MB, free: 15.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1356, allocations: 0 / 488 MB, free: 15.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001849/0.1358, allocations: 75.39 kB / 488.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.1358, allocations: 77.11 kB / 488.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.15e-05/0.1358, allocations: 93.86 kB / 488.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.1359, allocations: 25.7 kB / 488.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.7e-05/0.1359, allocations: 88.06 kB / 488.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.1359, allocations: 7.906 kB / 488.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.136, allocations: 9.719 kB / 488.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.1361, allocations: 314.8 kB / 488.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.199e-05/0.1361, allocations: 8.125 kB / 488.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.152e-05/0.1361, allocations: 3.938 kB / 488.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.359e-05/0.1362, allocations: 72.2 kB / 488.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1362, allocations: 3.938 kB / 488.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.535e-05/0.1363, allocations: 67.39 kB / 488.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.1363, allocations: 33.7 kB / 488.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1363, allocations: 0 / 488.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.1363, allocations: 0 / 488.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.505e-05/0.1364, allocations: 4.094 kB / 488.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1364, allocations: 0 / 488.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.447e-05/0.1364, allocations: 0 / 488.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.1364, allocations: 4 kB / 488.9 MB, free: 14.07 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.566e-05/0.1365, allocations: 135.5 kB / 489 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/0.1365, allocations: 7.922 kB / 489 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.658e-05/0.1365, allocations: 7.125 kB / 489 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1365, allocations: 0 / 489 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.1365, allocations: 0 / 489 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-06/0.1366, allocations: 0 / 489 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.1368, allocations: 300.3 kB / 489.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1368, allocations: 4 kB / 489.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.058e-06/0.1368, allocations: 0 / 489.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1368, allocations: 0 / 489.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.1368, allocations: 0 / 489.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1368, allocations: 3.984 kB / 489.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1368, allocations: 0 / 489.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001082/0.137, allocations: 177.1 kB / 489.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.601e-05/0.137, allocations: 81.09 kB / 489.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.137, allocations: 0 / 489.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.262e-05/0.1371, allocations: 0 / 489.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.473e-05/0.1371, allocations: 4 kB / 489.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.1371, allocations: 0 / 489.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.416e-05/0.1371, allocations: 79.28 kB / 489.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1371, allocations: 0 / 489.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004555/0.1376, allocations: 131.9 kB / 489.8 MB, free: 13.04 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.001121/0.1387, allocations: 0.9229 MB / 490.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001027/0.1388, allocations: 67.39 kB / 490.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1388, allocations: 4 kB / 490.8 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.308e-05/0.1389, allocations: 55.41 kB / 490.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001985/0.1391, allocations: 0 / 490.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009261/0.14, allocations: 1.189 MB / 492 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002247/0.1403, allocations: 0.681 MB / 492.7 MB, free: 9.953 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.179e-05/0.1403, allocations: 0 / 492.7 MB, free: 9.953 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.959e-05/0.1403, allocations: 7.438 kB / 492.7 MB, free: 9.949 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1403, allocations: 0 / 492.7 MB, free: 9.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01493/0.1552, allocations: 4.304 MB / 497 MB, free: 5.754 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001853/0.1555, allocations: 227.5 kB / 497.2 MB, free: 5.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.878/2.033, allocations: 3.938 kB / 497.2 MB, free: 5.496 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