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.001122/0.001122, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001209, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2264/0.2264, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 75.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4103/0.4119, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001577/0.4135, allocations: 0.4979 MB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002913/0.4164, allocations: 2.023 MB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.975e-05/0.4165, allocations: 1.094 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.121e-05/0.4165, allocations: 0 / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.844e-06/0.4165, allocations: 0 / 0.533 GB, free: 11.45 MB / 398.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.001654/0.4182, allocations: 0.5053 MB / 0.5335 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.931e-05/0.4182, allocations: 5.391 kB / 0.5335 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.721e-05/0.4183, allocations: 1.281 kB / 0.5335 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.655e-05/0.4183, allocations: 1.75 kB / 0.5335 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.541e-05/0.4183, allocations: 0 / 0.5335 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.692e-06/0.4183, allocations: 0 / 0.5335 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001/0.4193, allocations: 0.648 MB / 0.5341 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.396e-06/0.4194, allocations: 0 / 0.5341 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.03e-05/0.4194, allocations: 1.375 kB / 0.5341 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005315/0.4199, allocations: 384.2 kB / 0.5345 GB, free: 10.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.4199, allocations: 0 / 0.5345 GB, free: 10.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.42, allocations: 0 / 0.5345 GB, free: 10.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.42, allocations: 4 kB / 0.5345 GB, free: 10.55 MB / 398.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.000435/0.4204, allocations: 413.6 kB / 0.5349 GB, free: 10.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.4205, allocations: 9.719 kB / 0.5349 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.179e-05/0.4205, allocations: 36.06 kB / 0.5349 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.393e-05/0.4206, allocations: 0.9375 kB / 0.5349 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.367e-05/0.4206, allocations: 160.4 kB / 0.5351 GB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.134e-06/0.4207, allocations: 1.531 kB / 0.5351 GB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.084e-05/0.4207, allocations: 1.375 kB / 0.5351 GB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.4208, allocations: 46.25 kB / 0.5351 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.4208, allocations: 3.984 kB / 0.5351 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.204e-06/0.4208, allocations: 0 / 0.5351 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.4208, allocations: 1.406 kB / 0.5351 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.029e-05/0.4209, allocations: 1.156 kB / 0.5351 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002516/0.4211, allocations: 236.9 kB / 0.5353 GB, free: 9.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.01e-05/0.4212, allocations: 19.39 kB / 0.5354 GB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.421e-05/0.4212, allocations: 12.8 kB / 0.5354 GB, free: 9.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-06/0.4212, allocations: 0.875 kB / 0.5354 GB, free: 9.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.4213, allocations: 64.91 kB / 0.5354 GB, free: 9.441 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.4213, allocations: 0.9375 kB / 0.5354 GB, free: 9.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.000189/0.4215, allocations: 66.22 kB / 0.5355 GB, free: 9.375 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/0.4215, allocations: 82.23 kB / 0.5356 GB, free: 9.277 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.716e-05/0.4216, allocations: 94.86 kB / 0.5357 GB, free: 9.176 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.4216, allocations: 29.83 kB / 0.5357 GB, free: 9.141 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.744e-05/0.4217, allocations: 84.12 kB / 0.5358 GB, free: 9.055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/0.4217, allocations: 1.688 kB / 0.5358 GB, free: 9.055 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.231e-05/0.4217, allocations: 12.91 kB / 0.5358 GB, free: 9.039 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.4219, allocations: 318.8 kB / 0.5361 GB, free: 8.719 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.199e-05/0.4219, allocations: 2.438 kB / 0.5361 GB, free: 8.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.582e-06/0.4219, allocations: 1.156 kB / 0.5361 GB, free: 8.719 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.486e-05/0.422, allocations: 65.73 kB / 0.5362 GB, free: 8.645 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.422, allocations: 3.938 kB / 0.5362 GB, free: 8.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.354e-05/0.4221, allocations: 73.64 kB / 0.5362 GB, free: 8.566 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.4221, allocations: 31.55 kB / 0.5363 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.4221, allocations: 0 / 0.5363 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.4222, allocations: 1.062 kB / 0.5363 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.465e-05/0.4222, allocations: 0 / 0.5363 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.4222, allocations: 3.938 kB / 0.5363 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.622e-05/0.4222, allocations: 1.125 kB / 0.5363 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.4222, allocations: 5.078 kB / 0.5363 GB, free: 8.527 MB / 398.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.0001406/0.4224, allocations: 146 kB / 0.5364 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.171e-05/0.4224, allocations: 1.312 kB / 0.5364 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.266e-05/0.4224, allocations: 3.125 kB / 0.5364 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.4224, allocations: 1.344 kB / 0.5364 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.4224, allocations: 0 / 0.5364 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.4224, allocations: 0 / 0.5364 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002399/0.4227, allocations: 310.6 kB / 0.5367 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.4227, allocations: 4 kB / 0.5367 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-06/0.4227, allocations: 1.062 kB / 0.5367 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.4227, allocations: 4.031 kB / 0.5367 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-06/0.4227, allocations: 1.125 kB / 0.5367 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.4227, allocations: 1.281 kB / 0.5367 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.4227, allocations: 0 / 0.5367 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001219/0.4229, allocations: 171.9 kB / 0.5369 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.175e-05/0.4229, allocations: 77.11 kB / 0.537 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.4229, allocations: 1 kB / 0.537 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.238e-05/0.423, allocations: 5.125 kB / 0.537 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.735e-05/0.423, allocations: 1.156 kB / 0.537 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.423, allocations: 1.062 kB / 0.537 GB, free: 7.738 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.475e-05/0.423, allocations: 79.22 kB / 0.537 GB, free: 7.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.423, allocations: 0 / 0.537 GB, free: 7.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004532/0.4235, allocations: 135.8 kB / 0.5372 GB, free: 7.621 MB / 398.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.001075/0.4246, allocations: 0.9133 MB / 0.5381 GB, free: 6.824 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001109/0.4247, allocations: 68.25 kB / 0.5381 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.4247, allocations: 0 / 0.5381 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.692e-05/0.4248, allocations: 64.23 kB / 0.5382 GB, free: 6.684 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002053/0.425, allocations: 7.078 kB / 0.5382 GB, free: 6.684 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.4261, allocations: 1.189 MB / 0.5394 GB, free: 5.469 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.4264, allocations: 0.6711 MB / 0.54 GB, free: 4.773 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.049e-05/0.4264, allocations: 1 kB / 0.54 GB, free: 4.773 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.907e-05/0.4264, allocations: 10 kB / 0.54 GB, free: 4.766 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4264, allocations: 0 / 0.54 GB, free: 4.766 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.4501, allocations: 4.526 MB / 0.5444 GB, free: 2.355 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.046/8.496, allocations: 5.141 kB / 0.5445 GB, free: 2.355 MB / 398.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