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.001134/0.001134, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2929/0.2929, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.001671, allocations: 75.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4111/0.4128, allocations: 62.44 MB / 0.5305 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001568/0.4144, allocations: 499.4 kB / 0.531 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.4174, allocations: 2.028 MB / 0.533 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.817e-05/0.4174, allocations: 6.219 kB / 0.533 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.511e-05/0.4174, allocations: 0 / 0.533 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.032e-06/0.4174, allocations: 0 / 0.533 GB, free: 11.28 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.00142/0.4189, allocations: 0.4885 MB / 0.5335 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.955e-05/0.4189, allocations: 5.359 kB / 0.5335 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.952e-05/0.419, allocations: 5.359 kB / 0.5335 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.722e-05/0.419, allocations: 0 / 0.5335 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.812e-05/0.419, allocations: 1.375 kB / 0.5335 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.504e-06/0.419, allocations: 0 / 0.5335 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.4201, allocations: 0.6437 MB / 0.5341 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-06/0.4201, allocations: 0 / 0.5341 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.38e-05/0.4202, allocations: 1.312 kB / 0.5341 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006162/0.4208, allocations: 391.5 kB / 0.5345 GB, free: 10.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4208, allocations: 1.094 kB / 0.5345 GB, free: 10.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4208, allocations: 0 / 0.5345 GB, free: 10.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.4208, allocations: 0 / 0.5345 GB, free: 10.39 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.0005282/0.4213, allocations: 418.1 kB / 0.5349 GB, free: 9.957 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.4214, allocations: 9.625 kB / 0.5349 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.928e-05/0.4215, allocations: 44.06 kB / 0.5349 GB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.18e-05/0.4215, allocations: 0.9375 kB / 0.5349 GB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.4216, allocations: 165.7 kB / 0.5351 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.4217, allocations: 384 / 0.5351 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.4217, allocations: 5.734 kB / 0.5351 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/0.4218, allocations: 33.95 kB / 0.5351 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.4218, allocations: 4 kB / 0.5351 GB, free: 9.664 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-06/0.4218, allocations: 3.984 kB / 0.5351 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.4218, allocations: 1.375 kB / 0.5351 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.38e-05/0.4219, allocations: 5.312 kB / 0.5351 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002624/0.4221, allocations: 229 kB / 0.5353 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.231e-05/0.4222, allocations: 26.69 kB / 0.5354 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.476e-05/0.4222, allocations: 8.984 kB / 0.5354 GB, free: 9.348 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.508e-06/0.4223, allocations: 5.375 kB / 0.5354 GB, free: 9.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.267e-05/0.4223, allocations: 61.58 kB / 0.5354 GB, free: 9.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.4223, allocations: 0 / 0.5354 GB, free: 9.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.000186/0.4225, allocations: 70.39 kB / 0.5355 GB, free: 9.199 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.4226, allocations: 78.48 kB / 0.5356 GB, free: 9.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.619e-05/0.4226, allocations: 89.86 kB / 0.5357 GB, free: 9.008 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.4226, allocations: 27.08 kB / 0.5357 GB, free: 8.977 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.969e-05/0.4227, allocations: 84.27 kB / 0.5358 GB, free: 8.891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.348e-05/0.4227, allocations: 9.328 kB / 0.5358 GB, free: 8.883 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.992e-05/0.4227, allocations: 12.47 kB / 0.5358 GB, free: 8.867 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4229, allocations: 318.8 kB / 0.5361 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.221e-05/0.4229, allocations: 1.375 kB / 0.5361 GB, free: 8.547 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.923e-06/0.4229, allocations: 2.75 kB / 0.5361 GB, free: 8.547 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.072e-05/0.423, allocations: 69.7 kB / 0.5362 GB, free: 8.469 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.423, allocations: 4 kB / 0.5362 GB, free: 8.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.383e-05/0.423, allocations: 73.02 kB / 0.5362 GB, free: 8.391 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.4231, allocations: 31.2 kB / 0.5363 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.4231, allocations: 0 / 0.5363 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.4231, allocations: 1.375 kB / 0.5363 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.355e-05/0.4231, allocations: 0 / 0.5363 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.4231, allocations: 5.312 kB / 0.5363 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.713e-05/0.4232, allocations: 0 / 0.5363 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.4232, allocations: 1.375 kB / 0.5363 GB, free: 8.355 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.0001001/0.4233, allocations: 142.3 kB / 0.5364 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.4233, allocations: 3.984 kB / 0.5364 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.289e-05/0.4233, allocations: 4.5 kB / 0.5364 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.4233, allocations: 0 / 0.5364 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.4233, allocations: 1.375 kB / 0.5364 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.4234, allocations: 0 / 0.5364 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.4236, allocations: 302 kB / 0.5367 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.4236, allocations: 5.375 kB / 0.5367 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.687e-06/0.4236, allocations: 0 / 0.5367 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.4236, allocations: 0 / 0.5367 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.4236, allocations: 5.406 kB / 0.5367 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.4236, allocations: 0 / 0.5367 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4237, allocations: 5.359 kB / 0.5367 GB, free: 7.844 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.4239, allocations: 166.9 kB / 0.5369 GB, free: 7.672 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.261e-05/0.424, allocations: 81.09 kB / 0.537 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.424, allocations: 1.375 kB / 0.537 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.014e-05/0.424, allocations: 1.375 kB / 0.537 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.211e-05/0.4241, allocations: 9.406 kB / 0.537 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-06/0.4241, allocations: 0 / 0.537 GB, free: 7.566 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.853e-05/0.4241, allocations: 76.66 kB / 0.5371 GB, free: 7.492 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4241, allocations: 0 / 0.5371 GB, free: 7.492 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004549/0.4246, allocations: 134.9 kB / 0.5372 GB, free: 7.453 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.001158/0.4257, allocations: 0.9159 MB / 0.5381 GB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.4259, allocations: 71.73 kB / 0.5381 GB, free: 6.582 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.4259, allocations: 4.062 kB / 0.5382 GB, free: 6.578 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.125e-05/0.4259, allocations: 56.44 kB / 0.5382 GB, free: 6.516 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.4262, allocations: 2.156 kB / 0.5382 GB, free: 6.516 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.4273, allocations: 1.199 MB / 0.5394 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002548/0.4276, allocations: 0.6748 MB / 0.54 GB, free: 4.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.108e-05/0.4276, allocations: 1.094 kB / 0.54 GB, free: 4.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.919e-05/0.4276, allocations: 9.625 kB / 0.54 GB, free: 4.582 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4276, allocations: 0 / 0.54 GB, free: 4.582 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02347/0.4511, allocations: 4.522 MB / 0.5445 GB, free: 2.176 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.832/8.284, allocations: 10.33 kB / 0.5445 GB, free: 2.172 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.csv","/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