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.001142/0.001142, allocations: 109.5 kB / 17.78 MB, free: 5.312 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.001137/0.001138, allocations: 188 kB / 18.71 MB, free: 4.387 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.345/1.345, allocations: 222.9 MB / 242.4 MB, free: 15.2 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.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 63.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3395, allocations: 60.83 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001793/0.3413, allocations: 0.4975 MB / 0.5189 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003083/0.3444, allocations: 1.996 MB / 0.5208 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.058e-05/0.3444, allocations: 0 / 0.5208 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.093e-05/0.3445, allocations: 0 / 0.5208 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.865e-06/0.3445, allocations: 0 / 0.5208 GB, free: 1.582 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.001773/0.3463, allocations: 0.4902 MB / 0.5213 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.893e-05/0.3464, allocations: 3.344 kB / 0.5213 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.168e-05/0.3464, allocations: 1.266 kB / 0.5213 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.974e-05/0.3464, allocations: 5.391 kB / 0.5213 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.283e-05/0.3465, allocations: 4 kB / 0.5213 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.947e-06/0.3465, allocations: 0 / 0.5213 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001323/0.3478, allocations: 0.623 MB / 0.5219 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.655e-05/0.3478, allocations: 5.297 kB / 0.522 GB, free: 1.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.946e-05/0.3479, allocations: 0 / 0.522 GB, free: 1.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007628/0.3486, allocations: 378.2 kB / 0.5223 GB, free: 1.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3486, allocations: 5.188 kB / 0.5223 GB, free: 1.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3487, allocations: 4 kB / 0.5223 GB, free: 1.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.3487, allocations: 0 / 0.5223 GB, free: 1.086 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.0004319/0.3491, allocations: 403.9 kB / 0.5227 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.3492, allocations: 9.859 kB / 0.5227 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.667e-05/0.3492, allocations: 35.67 kB / 0.5228 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.542e-05/0.3492, allocations: 4.875 kB / 0.5228 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.985e-05/0.3493, allocations: 161.3 kB / 0.5229 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.789e-06/0.3493, allocations: 384 / 0.5229 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.3494, allocations: 384 / 0.5229 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.3495, allocations: 44.12 kB / 0.523 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.3495, allocations: 0 / 0.523 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.3495, allocations: 0 / 0.523 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3495, allocations: 1.25 kB / 0.523 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.481e-05/0.3495, allocations: 9.953 kB / 0.523 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002223/0.3498, allocations: 228.4 kB / 0.5232 GB, free: 120 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.495e-05/0.3498, allocations: 24.14 kB / 0.5232 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.499e-05/0.3499, allocations: 13.61 kB / 0.5232 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.926e-06/0.3499, allocations: 1.125 kB / 0.5232 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.3499, allocations: 58.12 kB / 0.5233 GB, free: 8 kB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.3499, allocations: 0 / 0.5233 GB, free: 8 kB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002525/0.3502, allocations: 73.48 kB / 0.5233 GB, free: 15.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.3502, allocations: 79.22 kB / 0.5234 GB, free: 15.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.343e-05/0.3503, allocations: 89.86 kB / 0.5235 GB, free: 15.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.3503, allocations: 30.89 kB / 0.5235 GB, free: 15.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.107e-05/0.3504, allocations: 84.7 kB / 0.5236 GB, free: 15.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.3504, allocations: 5.125 kB / 0.5236 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.429e-05/0.3504, allocations: 13.45 kB / 0.5236 GB, free: 15.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.3506, allocations: 312 kB / 0.5239 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.316e-05/0.3506, allocations: 2.781 kB / 0.5239 GB, free: 15.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.039e-05/0.3506, allocations: 5.812 kB / 0.5239 GB, free: 15.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.403e-05/0.3507, allocations: 67.48 kB / 0.524 GB, free: 15.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3507, allocations: 7.875 kB / 0.524 GB, free: 15.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.428e-05/0.3508, allocations: 67.61 kB / 0.5241 GB, free: 15.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.531e-05/0.3508, allocations: 31.33 kB / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3508, allocations: 0 / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.3509, allocations: 1.812 kB / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.524e-05/0.3509, allocations: 0 / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.3509, allocations: 1.703 kB / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.712e-05/0.3509, allocations: 0 / 0.5241 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-06/0.3509, allocations: 1.25 kB / 0.5241 GB, free: 15.11 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 9.293e-05/0.351, allocations: 143.1 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.3511, allocations: 9.594 kB / 0.5243 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.316e-05/0.3511, allocations: 12.8 kB / 0.5243 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.3511, allocations: 0 / 0.5243 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.3511, allocations: 1.125 kB / 0.5243 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3511, allocations: 0.7031 kB / 0.5243 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002773/0.3514, allocations: 304.8 kB / 0.5246 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3514, allocations: 0 / 0.5246 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.468e-06/0.3514, allocations: 4.547 kB / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.3514, allocations: 0 / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.3514, allocations: 6.234 kB / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3515, allocations: 3.938 kB / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.3515, allocations: 0.5625 kB / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001794/0.3516, allocations: 170.3 kB / 0.5247 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.023e-05/0.3517, allocations: 87.03 kB / 0.5248 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.3517, allocations: 5.969 kB / 0.5248 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.918e-05/0.3518, allocations: 4.031 kB / 0.5248 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.727e-05/0.3518, allocations: 2 kB / 0.5248 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.3518, allocations: 2.031 kB / 0.5248 GB, free: 14.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.497e-05/0.3519, allocations: 75.28 kB / 0.5249 GB, free: 14.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3519, allocations: 0 / 0.5249 GB, free: 14.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005973/0.3525, allocations: 127.5 kB / 0.525 GB, free: 14.2 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.001216/0.3537, allocations: 0.892 MB / 0.5259 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.3538, allocations: 73.67 kB / 0.526 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3538, allocations: 3.938 kB / 0.526 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.253e-05/0.3539, allocations: 57.11 kB / 0.526 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.3541, allocations: 2.422 kB / 0.526 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.3553, allocations: 1.185 MB / 0.5272 GB, free: 12.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.3556, allocations: 0.6767 MB / 0.5278 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.689e-06/0.3556, allocations: 0 / 0.5278 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.967e-05/0.3556, allocations: 9.594 kB / 0.5279 GB, free: 11.41 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3556, allocations: 32 / 0.5279 GB, free: 11.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.3782, allocations: 4.379 MB / 0.5321 GB, free: 9.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.284, allocations: 17.94 kB / 0.5322 GB, free: 9.391 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