Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 109.8 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002013/0.002013, allocations: 183.1 kB / 18.7 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2103/0.2103, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 67.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3526, allocations: 60.82 MB / 0.5184 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001396/0.354, allocations: 0.5097 MB / 0.5189 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002327/0.3563, allocations: 1.988 MB / 0.5208 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.65e-05/0.3564, allocations: 0 / 0.5208 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.555e-05/0.3564, allocations: 1.125 kB / 0.5208 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.442e-06/0.3564, allocations: 3.938 kB / 0.5209 GB, free: 1.445 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001395/0.3578, allocations: 494.5 kB / 0.5213 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.087e-05/0.3579, allocations: 5 kB / 0.5213 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.921e-05/0.3579, allocations: 1.969 kB / 0.5213 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.395e-05/0.3579, allocations: 1 kB / 0.5213 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.746e-05/0.358, allocations: 4.953 kB / 0.5213 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.53e-06/0.358, allocations: 3.938 kB / 0.5213 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000933/0.3589, allocations: 0.6273 MB / 0.522 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.562e-06/0.3589, allocations: 0 / 0.522 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.894e-05/0.359, allocations: 5.266 kB / 0.522 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005569/0.3595, allocations: 377.5 kB / 0.5223 GB, free: 0.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3595, allocations: 0 / 0.5223 GB, free: 0.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3595, allocations: 4 kB / 0.5223 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.3595, allocations: 1.438 kB / 0.5223 GB, free: 0.9531 MB / 382.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.0003296/0.3599, allocations: 406.8 kB / 0.5227 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.3599, allocations: 9.703 kB / 0.5227 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.263e-05/0.36, allocations: 32.56 kB / 0.5228 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.219e-05/0.36, allocations: 6.219 kB / 0.5228 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.181e-05/0.3601, allocations: 161.7 kB / 0.5229 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.3601, allocations: 1.25 kB / 0.5229 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.637e-06/0.3601, allocations: 5.469 kB / 0.5229 GB, free: 304 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.518e-05/0.3602, allocations: 38.83 kB / 0.523 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.3602, allocations: 0 / 0.523 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.124e-06/0.3602, allocations: 1.094 kB / 0.523 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.3602, allocations: 0 / 0.523 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.898e-05/0.3602, allocations: 3.266 kB / 0.523 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001722/0.3604, allocations: 230.7 kB / 0.5232 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.921e-05/0.3605, allocations: 29.3 kB / 0.5232 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.172e-05/0.3605, allocations: 14.47 kB / 0.5232 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.751e-06/0.3605, allocations: 0 / 0.5232 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.833e-05/0.3605, allocations: 57.8 kB / 0.5233 GB, free: 15.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.3605, allocations: 1.281 kB / 0.5233 GB, free: 15.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001825/0.3607, allocations: 68.59 kB / 0.5233 GB, free: 15.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.3608, allocations: 78.78 kB / 0.5234 GB, free: 15.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.474e-05/0.3608, allocations: 91.08 kB / 0.5235 GB, free: 15.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.3609, allocations: 34.3 kB / 0.5235 GB, free: 15.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.38e-05/0.3609, allocations: 80.14 kB / 0.5236 GB, free: 15.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.3609, allocations: 8.969 kB / 0.5236 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.641e-05/0.3609, allocations: 14.08 kB / 0.5236 GB, free: 15.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.3611, allocations: 312.5 kB / 0.5239 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.296e-05/0.3611, allocations: 5.656 kB / 0.5239 GB, free: 15.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.085e-06/0.3611, allocations: 2.922 kB / 0.5239 GB, free: 15.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.992e-05/0.3612, allocations: 70.78 kB / 0.524 GB, free: 15.08 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.81e-06/0.3612, allocations: 4.688 kB / 0.524 GB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.356e-05/0.3613, allocations: 71.16 kB / 0.5241 GB, free: 15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.3613, allocations: 31.81 kB / 0.5241 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.3613, allocations: 0 / 0.5241 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.3613, allocations: 1.312 kB / 0.5241 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.511e-05/0.3613, allocations: 4.594 kB / 0.5241 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.3613, allocations: 0 / 0.5241 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.467e-05/0.3614, allocations: 1.609 kB / 0.5241 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.211e-06/0.3614, allocations: 1.125 kB / 0.5241 GB, free: 14.97 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 8.084e-05/0.3615, allocations: 143.1 kB / 0.5243 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.138e-05/0.3615, allocations: 5.031 kB / 0.5243 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.529e-05/0.3615, allocations: 12.92 kB / 0.5243 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.3615, allocations: 0 / 0.5243 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.3615, allocations: 1.25 kB / 0.5243 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.3615, allocations: 0.5625 kB / 0.5243 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.3618, allocations: 303.9 kB / 0.5246 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3618, allocations: 0 / 0.5246 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.468e-06/0.3618, allocations: 6.062 kB / 0.5246 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3618, allocations: 0 / 0.5246 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.3618, allocations: 5.281 kB / 0.5246 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3618, allocations: 0.7031 kB / 0.5246 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3618, allocations: 0 / 0.5246 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000116/0.3619, allocations: 168 kB / 0.5247 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.176e-05/0.362, allocations: 85.47 kB / 0.5248 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.362, allocations: 2.266 kB / 0.5248 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.888e-05/0.362, allocations: 4 kB / 0.5248 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.509e-05/0.3621, allocations: 7.109 kB / 0.5248 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.3621, allocations: 0 / 0.5248 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.219e-05/0.3621, allocations: 75.28 kB / 0.5249 GB, free: 14.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3621, allocations: 0 / 0.5249 GB, free: 14.1 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004423/0.3626, allocations: 128 kB / 0.525 GB, free: 14.07 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.001004/0.3636, allocations: 0.903 MB / 0.5259 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001045/0.3637, allocations: 69.3 kB / 0.526 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3637, allocations: 5 kB / 0.526 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.337e-05/0.3637, allocations: 57.38 kB / 0.526 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001841/0.3639, allocations: 2.188 kB / 0.526 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009164/0.3649, allocations: 1.185 MB / 0.5272 GB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.3651, allocations: 0.6762 MB / 0.5279 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.059e-05/0.3651, allocations: 0 / 0.5279 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.112e-05/0.3652, allocations: 9.906 kB / 0.5279 GB, free: 11.27 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3652, allocations: 7.969 kB / 0.5279 GB, free: 11.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02279/0.388, allocations: 4.368 MB / 0.5321 GB, free: 9.297 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.882/8.27, allocations: 10 kB / 0.5321 GB, free: 9.289 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches