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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001572/0.001572, allocations: 112.7 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001532/0.001532, allocations: 214 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 230.5 MB / 257.4 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2309/0.2309, allocations: 46.94 MB / 360.8 MB, free: 4.168 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 79.88 kB / 0.4962 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4154, allocations: 66.08 MB / 0.5607 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.00176/0.4171, allocations: 0.4993 MB / 0.5612 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00309/0.4202, allocations: 2.054 MB / 0.5632 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.946e-05/0.4202, allocations: 0 / 0.5632 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.25e-05/0.4202, allocations: 0 / 0.5632 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.4202, allocations: 0 / 0.5632 GB, free: 1.711 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.00143/0.4217, allocations: 0.5055 MB / 0.5637 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.074e-05/0.4217, allocations: 3.984 kB / 0.5637 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.291e-05/0.4218, allocations: 0 / 0.5637 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.762e-05/0.4218, allocations: 7.938 kB / 0.5637 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.789e-05/0.4218, allocations: 3.984 kB / 0.5637 GB, free: 1.191 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.622e-06/0.4218, allocations: 0 / 0.5637 GB, free: 1.191 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001127/0.4229, allocations: 0.7427 MB / 0.5645 GB, free: 460 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.682e-06/0.4229, allocations: 0 / 0.5645 GB, free: 460 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.773e-05/0.423, allocations: 0 / 0.5645 GB, free: 460 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005438/0.4235, allocations: 391.1 kB / 0.5648 GB, free: 68 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.4235, allocations: 3.938 kB / 0.5648 GB, free: 64 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4235, allocations: 4 kB / 0.5648 GB, free: 60 kB / 398.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.4235, allocations: 0 / 0.5648 GB, free: 60 kB / 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.0004646/0.424, allocations: 331.6 kB / 0.5652 GB, free: 15.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.424, allocations: 16.02 kB / 0.5652 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.983e-05/0.4241, allocations: 34.7 kB / 0.5652 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.457e-05/0.4241, allocations: 0.9375 kB / 0.5652 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.702e-05/0.4242, allocations: 106.5 kB / 0.5653 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.4242, allocations: 384 / 0.5653 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.4242, allocations: 4.312 kB / 0.5653 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.4243, allocations: 41.83 kB / 0.5654 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.4243, allocations: 0 / 0.5654 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.4243, allocations: 3.984 kB / 0.5654 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.4243, allocations: 0 / 0.5654 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.064e-05/0.4244, allocations: 4 kB / 0.5654 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002375/0.4246, allocations: 203.9 kB / 0.5656 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.466e-05/0.4247, allocations: 26.53 kB / 0.5656 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.268e-05/0.4247, allocations: 12.92 kB / 0.5656 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.831e-06/0.4247, allocations: 0 / 0.5656 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.13e-05/0.4247, allocations: 60.27 kB / 0.5656 GB, free: 15.08 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.4247, allocations: 3.938 kB / 0.5657 GB, free: 15.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001976/0.4249, allocations: 67.39 kB / 0.5657 GB, free: 15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/0.425, allocations: 77.11 kB / 0.5658 GB, free: 14.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.827e-05/0.425, allocations: 97.86 kB / 0.5659 GB, free: 14.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.4251, allocations: 33.77 kB / 0.5659 GB, free: 14.76 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.601e-05/0.4251, allocations: 80.14 kB / 0.566 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.288e-05/0.4251, allocations: 0 / 0.566 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.132e-05/0.4251, allocations: 13.72 kB / 0.566 GB, free: 14.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.4253, allocations: 318.8 kB / 0.5663 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.326e-05/0.4253, allocations: 0 / 0.5663 GB, free: 14.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.004e-05/0.4253, allocations: 11.94 kB / 0.5663 GB, free: 14.33 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.412e-05/0.4254, allocations: 64.33 kB / 0.5664 GB, free: 14.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.4254, allocations: 3.938 kB / 0.5664 GB, free: 14.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.345e-05/0.4255, allocations: 71.39 kB / 0.5665 GB, free: 14.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.632e-05/0.4255, allocations: 29.7 kB / 0.5665 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.4255, allocations: 0 / 0.5665 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.4255, allocations: 0 / 0.5665 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.079e-05/0.4255, allocations: 7.938 kB / 0.5665 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.4255, allocations: 0 / 0.5665 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.79e-05/0.4256, allocations: 3.953 kB / 0.5665 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.4256, allocations: 0 / 0.5665 GB, free: 14.12 MB / 414.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.0001077/0.4257, allocations: 148.8 kB / 0.5666 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.164e-05/0.4257, allocations: 0 / 0.5666 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.042e-05/0.4257, allocations: 7.141 kB / 0.5666 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.4257, allocations: 0 / 0.5666 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.4257, allocations: 0 / 0.5666 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.4257, allocations: 0 / 0.5666 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002754/0.426, allocations: 267.4 kB / 0.5669 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.426, allocations: 0 / 0.5669 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.287e-06/0.426, allocations: 0 / 0.5669 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.426, allocations: 4.031 kB / 0.5669 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.426, allocations: 7.938 kB / 0.5669 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.426, allocations: 0 / 0.5669 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.426, allocations: 0 / 0.5669 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001406/0.4262, allocations: 169.2 kB / 0.5671 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.226e-06/0.4262, allocations: 7.984 kB / 0.5671 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.4262, allocations: 7.922 kB / 0.5671 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.007e-05/0.4262, allocations: 4.031 kB / 0.5671 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.409e-05/0.4262, allocations: 0 / 0.5671 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.4262, allocations: 7.984 kB / 0.5671 GB, free: 13.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.596e-05/0.4263, allocations: 75.28 kB / 0.5672 GB, free: 13.33 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4263, allocations: 0 / 0.5672 GB, free: 13.33 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004576/0.4267, allocations: 139.5 kB / 0.5673 GB, free: 13.19 MB / 414.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.001165/0.4279, allocations: 0.9064 MB / 0.5682 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001287/0.428, allocations: 67.39 kB / 0.5682 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.428, allocations: 4.062 kB / 0.5683 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.05e-05/0.4281, allocations: 55.41 kB / 0.5683 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/0.4283, allocations: 4 kB / 0.5683 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.4294, allocations: 1.207 MB / 0.5695 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.4298, allocations: 0.6729 MB / 0.5701 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.077e-05/0.4298, allocations: 0 / 0.5701 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/0.4298, allocations: 11.44 kB / 0.5702 GB, free: 10.1 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4298, allocations: 3.938 kB / 0.5702 GB, free: 10.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03051/0.4603, allocations: 4.656 MB / 0.5747 GB, free: 5.539 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.46, allocations: 10.64 kB / 0.5747 GB, free: 5.531 MB / 414.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.513037990996963]