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.00157/0.00157, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001897/0.001897, allocations: 210.9 kB / 23.72 MB, free: 4.391 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.466/1.466, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2312/0.2312, allocations: 44.94 MB / 358.8 MB, free: 6.062 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="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"}) [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.003157/0.003157, allocations: 63.91 kB / 0.493 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4457/0.4489, allocations: 65.47 MB / 0.557 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001743/0.4506, allocations: 0.5072 MB / 0.5575 GB, free: 6.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004144/0.4548, allocations: 1.919 MB / 0.5593 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.595e-05/0.4548, allocations: 0 / 0.5593 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.306e-05/0.4548, allocations: 7.938 kB / 0.5593 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.793e-06/0.4548, allocations: 0 / 0.5593 GB, free: 5.102 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.001675/0.4565, allocations: 0.4941 MB / 0.5598 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.435e-05/0.4565, allocations: 11.88 kB / 0.5598 GB, free: 4.598 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.751e-05/0.4566, allocations: 4 kB / 0.5598 GB, free: 4.594 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.045e-05/0.4566, allocations: 3.984 kB / 0.5598 GB, free: 4.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.999e-05/0.4566, allocations: 0 / 0.5598 GB, free: 4.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.653e-06/0.4566, allocations: 0 / 0.5598 GB, free: 4.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001136/0.4578, allocations: 0.6685 MB / 0.5605 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.127e-06/0.4578, allocations: 0 / 0.5605 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.262e-05/0.4578, allocations: 4 kB / 0.5605 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005854/0.4584, allocations: 387 kB / 0.5609 GB, free: 3.539 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.4584, allocations: 4 kB / 0.5609 GB, free: 3.535 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4584, allocations: 0 / 0.5609 GB, free: 3.535 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.4584, allocations: 0 / 0.5609 GB, free: 3.535 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.0004631/0.4589, allocations: 339.4 kB / 0.5612 GB, free: 3.168 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4589, allocations: 12.03 kB / 0.5612 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.076e-05/0.459, allocations: 34.7 kB / 0.5612 GB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.453e-05/0.459, allocations: 0.9375 kB / 0.5612 GB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.695e-05/0.4591, allocations: 110.5 kB / 0.5613 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.4591, allocations: 4.375 kB / 0.5613 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.809e-06/0.4591, allocations: 384 / 0.5614 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.4592, allocations: 59.53 kB / 0.5614 GB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.4592, allocations: 0 / 0.5614 GB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.4592, allocations: 0 / 0.5614 GB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.4592, allocations: 8 kB / 0.5614 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.031e-05/0.4593, allocations: 37.69 kB / 0.5615 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002454/0.4595, allocations: 199.9 kB / 0.5616 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.107e-05/0.4596, allocations: 48.31 kB / 0.5617 GB, free: 2.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.155e-05/0.4597, allocations: 38.61 kB / 0.5617 GB, free: 2.508 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.498e-06/0.4597, allocations: 3.938 kB / 0.5617 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.561e-05/0.4597, allocations: 64.27 kB / 0.5618 GB, free: 2.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.4597, allocations: 0 / 0.5618 GB, free: 2.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002353/0.46, allocations: 126.7 kB / 0.5619 GB, free: 2.277 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.46, allocations: 81.23 kB / 0.562 GB, free: 2.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.328e-05/0.4601, allocations: 93.86 kB / 0.5621 GB, free: 2.078 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.4601, allocations: 25.7 kB / 0.5621 GB, free: 2.047 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.859e-05/0.4601, allocations: 80.14 kB / 0.5622 GB, free: 1.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.101e-05/0.4602, allocations: 0 / 0.5622 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.4602, allocations: 13.72 kB / 0.5622 GB, free: 1.945 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.4603, allocations: 318.8 kB / 0.5625 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.536e-05/0.4604, allocations: 29.7 kB / 0.5625 GB, free: 1.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.988e-05/0.4604, allocations: 25.7 kB / 0.5625 GB, free: 1.559 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.559e-05/0.4605, allocations: 72.27 kB / 0.5626 GB, free: 1.473 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4605, allocations: 7.938 kB / 0.5626 GB, free: 1.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001078/0.4606, allocations: 97.03 kB / 0.5627 GB, free: 1.352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.004e-05/0.4606, allocations: 33.7 kB / 0.5627 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.4606, allocations: 0 / 0.5627 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.4606, allocations: 0 / 0.5627 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.596e-05/0.4607, allocations: 0 / 0.5627 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.4607, allocations: 0 / 0.5627 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.845e-05/0.4607, allocations: 3.953 kB / 0.5628 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/0.4607, allocations: 4 kB / 0.5628 GB, free: 1.305 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.0001119/0.4608, allocations: 139.5 kB / 0.5629 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.315e-05/0.4608, allocations: 8 kB / 0.5629 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.053e-05/0.4608, allocations: 7.141 kB / 0.5629 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.4608, allocations: 0 / 0.5629 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4608, allocations: 0 / 0.5629 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.4608, allocations: 0 / 0.5629 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003074/0.4612, allocations: 305 kB / 0.5632 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-06/0.4612, allocations: 0 / 0.5632 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.597e-06/0.4612, allocations: 0 / 0.5632 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.4612, allocations: 0 / 0.5632 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.4612, allocations: 3.984 kB / 0.5632 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.4612, allocations: 8.031 kB / 0.5632 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.4612, allocations: 0 / 0.5632 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001631/0.4613, allocations: 198.8 kB / 0.5634 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.889e-06/0.4613, allocations: 0 / 0.5634 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.4614, allocations: 4 kB / 0.5634 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.836e-05/0.4614, allocations: 3.938 kB / 0.5634 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.312e-05/0.4614, allocations: 8 kB / 0.5634 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.4614, allocations: 0 / 0.5634 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.632e-05/0.4615, allocations: 75.28 kB / 0.5635 GB, free: 460 kB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4615, allocations: 0 / 0.5635 GB, free: 460 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004281/0.4619, allocations: 135.5 kB / 0.5636 GB, free: 324 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.001215/0.4631, allocations: 0.9619 MB / 0.5646 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001533/0.4633, allocations: 122.8 kB / 0.5647 GB, free: 15.17 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.4633, allocations: 0 / 0.5647 GB, free: 15.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.962e-05/0.4633, allocations: 89.09 kB / 0.5648 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001856/0.4635, allocations: 0 / 0.5648 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.4647, allocations: 1.34 MB / 0.5661 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.22e-05/0.4647, allocations: 59.34 kB / 0.5661 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.104e-05/0.4647, allocations: 0 / 0.5661 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.12e-05/0.4648, allocations: 7.438 kB / 0.5661 GB, free: 13.52 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4648, allocations: 4.188 kB / 0.5661 GB, free: 13.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03392/0.4987, allocations: 5.1 MB / 0.5711 GB, free: 8.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.82, allocations: 3.234 kB / 0.5711 GB, free: 8.551 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.770955374930054]