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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002209/0.002209, allocations: 214.9 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2231/0.2231, allocations: 44.93 MB / 359.6 MB, free: 6.059 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00223/0.00223, allocations: 63.91 kB / 0.4938 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3509, allocations: 65.48 MB / 0.5577 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001868/0.3527, allocations: 0.4955 MB / 0.5582 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003981/0.3567, allocations: 1.917 MB / 0.5601 GB, free: 5.121 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.019e-05/0.3568, allocations: 4 kB / 0.5601 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.352e-05/0.3568, allocations: 4 kB / 0.5601 GB, free: 5.113 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.097e-06/0.3568, allocations: 3.938 kB / 0.5601 GB, free: 5.109 MB / 398.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.002268/0.3591, allocations: 0.5017 MB / 0.5606 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.462e-05/0.3591, allocations: 0 / 0.5606 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.888e-05/0.3592, allocations: 4 kB / 0.5606 GB, free: 4.605 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.854e-05/0.3592, allocations: 4 kB / 0.5606 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.5e-05/0.3592, allocations: 0 / 0.5606 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.815e-06/0.3592, allocations: 0 / 0.5606 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001479/0.3607, allocations: 0.7154 MB / 0.5613 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.472e-05/0.3607, allocations: 3.984 kB / 0.5613 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.686e-05/0.3607, allocations: 0 / 0.5613 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009134/0.3616, allocations: 387 kB / 0.5617 GB, free: 3.504 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3616, allocations: 0 / 0.5617 GB, free: 3.504 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3617, allocations: 4 kB / 0.5617 GB, free: 3.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.3617, allocations: 4 kB / 0.5617 GB, free: 3.496 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.0006016/0.3623, allocations: 331.5 kB / 0.562 GB, free: 3.137 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/0.3623, allocations: 12.03 kB / 0.562 GB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.713e-05/0.3624, allocations: 4.188 kB / 0.562 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.004e-05/0.3624, allocations: 38.69 kB / 0.562 GB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.782e-05/0.3625, allocations: 4.938 kB / 0.562 GB, free: 3.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.3626, allocations: 110.5 kB / 0.5621 GB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.3626, allocations: 4.312 kB / 0.5622 GB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.3626, allocations: 384 / 0.5622 GB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001718/0.3628, allocations: 63.28 kB / 0.5622 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.3628, allocations: 4 kB / 0.5622 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.3628, allocations: 0 / 0.5622 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.3628, allocations: 0 / 0.5622 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.08e-05/0.3629, allocations: 33.69 kB / 0.5622 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003137/0.3632, allocations: 200 kB / 0.5624 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.968e-05/0.3633, allocations: 56.23 kB / 0.5625 GB, free: 2.508 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.507e-05/0.3633, allocations: 34.62 kB / 0.5625 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.3633, allocations: 4 kB / 0.5625 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.437e-05/0.3634, allocations: 56.27 kB / 0.5626 GB, free: 2.391 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.462e-06/0.3634, allocations: 3.938 kB / 0.5626 GB, free: 2.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002885/0.3637, allocations: 130.8 kB / 0.5627 GB, free: 2.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/0.3638, allocations: 81.11 kB / 0.5628 GB, free: 2.137 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.122e-05/0.3638, allocations: 93.86 kB / 0.5629 GB, free: 2.035 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.3638, allocations: 25.7 kB / 0.5629 GB, free: 2.004 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.535e-05/0.3639, allocations: 80.14 kB / 0.563 GB, free: 1.922 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.3639, allocations: 0 / 0.563 GB, free: 1.922 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.3639, allocations: 17.7 kB / 0.563 GB, free: 1.898 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3641, allocations: 314.8 kB / 0.5633 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3e-05/0.3641, allocations: 33.64 kB / 0.5633 GB, free: 1.543 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.431e-05/0.3641, allocations: 29.83 kB / 0.5634 GB, free: 1.508 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.128e-05/0.3642, allocations: 72.2 kB / 0.5634 GB, free: 1.422 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3642, allocations: 0 / 0.5634 GB, free: 1.422 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001039/0.3643, allocations: 89.09 kB / 0.5635 GB, free: 1.316 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.019e-05/0.3644, allocations: 33.7 kB / 0.5635 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.3644, allocations: 0 / 0.5635 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.3644, allocations: 3.984 kB / 0.5635 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.112e-05/0.3644, allocations: 0 / 0.5635 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.3644, allocations: 0 / 0.5635 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.409e-05/0.3644, allocations: 7.953 kB / 0.5636 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.3645, allocations: 16.02 kB / 0.5636 GB, free: 1.25 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.0001229/0.3646, allocations: 135.5 kB / 0.5637 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.84e-05/0.3646, allocations: 4 kB / 0.5637 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.218e-05/0.3646, allocations: 3.156 kB / 0.5637 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.3646, allocations: 3.938 kB / 0.5637 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3646, allocations: 0 / 0.5637 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3646, allocations: 0 / 0.5637 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003199/0.365, allocations: 301.1 kB / 0.564 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.365, allocations: 0 / 0.564 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.4e-06/0.365, allocations: 0 / 0.564 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.365, allocations: 4.031 kB / 0.564 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.365, allocations: 8 kB / 0.564 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.365, allocations: 0 / 0.564 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.365, allocations: 3.984 kB / 0.564 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001788/0.3652, allocations: 198.8 kB / 0.5642 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.149e-06/0.3652, allocations: 0 / 0.5642 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.3652, allocations: 0 / 0.5642 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.471e-05/0.3652, allocations: 4 kB / 0.5642 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.874e-05/0.3652, allocations: 4 kB / 0.5642 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-06/0.3652, allocations: 0 / 0.5642 GB, free: 496 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.614e-05/0.3653, allocations: 79.22 kB / 0.5643 GB, free: 416 kB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3653, allocations: 4.031 kB / 0.5643 GB, free: 412 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005052/0.3658, allocations: 135.5 kB / 0.5644 GB, free: 276 kB / 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.001385/0.3672, allocations: 0.9695 MB / 0.5654 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001779/0.3674, allocations: 118.7 kB / 0.5655 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3674, allocations: 0 / 0.5655 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.383e-05/0.3674, allocations: 89.11 kB / 0.5656 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.3676, allocations: 0 / 0.5656 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.3689, allocations: 1.336 MB / 0.5669 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.46e-05/0.369, allocations: 55.55 kB / 0.5669 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.079e-05/0.369, allocations: 4 kB / 0.5669 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.608e-05/0.369, allocations: 11.44 kB / 0.5669 GB, free: 13.47 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.369, allocations: 0 / 0.5669 GB, free: 13.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/0.3963, allocations: 4.762 MB / 0.5716 GB, free: 8.855 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.68, allocations: 3.875 kB / 0.5716 GB, free: 8.855 MB / 414.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.68568597198464]