Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.002023/0.002023, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002335/0.002335, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.524/1.524, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2561/0.2561, allocations: 46.93 MB / 360.9 MB, free: 4.27 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 59.91 kB / 0.4962 GB, free: 7.906 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3999/0.4018, allocations: 66.04 MB / 0.5606 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001769/0.4036, allocations: 0.4971 MB / 0.5611 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003076/0.4067, allocations: 2.05 MB / 0.5631 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.486e-05/0.4067, allocations: 4 kB / 0.5631 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.377e-05/0.4067, allocations: 0 / 0.5631 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.003e-06/0.4067, allocations: 4 kB / 0.5631 GB, free: 1.93 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001462/0.4082, allocations: 0.4984 MB / 0.5636 GB, free: 1.434 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.361e-05/0.4082, allocations: 8 kB / 0.5636 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.264e-05/0.4083, allocations: 0 / 0.5636 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.569e-05/0.4083, allocations: 0 / 0.5636 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.047e-05/0.4083, allocations: 3.938 kB / 0.5636 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.121e-06/0.4083, allocations: 4 kB / 0.5636 GB, free: 1.418 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.4094, allocations: 0.731 MB / 0.5644 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.11e-05/0.4095, allocations: 3.984 kB / 0.5644 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.038e-05/0.4095, allocations: 7.938 kB / 0.5644 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000565/0.41, allocations: 387.1 kB / 0.5647 GB, free: 304 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.41, allocations: 0 / 0.5647 GB, free: 304 kB / 398.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.4101, allocations: 4 kB / 0.5647 GB, free: 300 kB / 398.1 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.4101, allocations: 0 / 0.5647 GB, free: 300 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.0004792/0.4105, allocations: 335.4 kB / 0.5651 GB, free: 15.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.4106, allocations: 12.03 kB / 0.5651 GB, free: 15.92 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.156e-05/0.4106, allocations: 38.7 kB / 0.5651 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.42e-05/0.4107, allocations: 0.9375 kB / 0.5651 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.774e-05/0.4108, allocations: 110.5 kB / 0.5652 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.4108, allocations: 384 / 0.5652 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.4108, allocations: 4.375 kB / 0.5652 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.4109, allocations: 37.81 kB / 0.5653 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.4109, allocations: 0 / 0.5653 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.4109, allocations: 3.984 kB / 0.5653 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.4109, allocations: 4 kB / 0.5653 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.966e-05/0.4109, allocations: 3.938 kB / 0.5653 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002515/0.4112, allocations: 204 kB / 0.5655 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.539e-05/0.4112, allocations: 22.61 kB / 0.5655 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.504e-05/0.4113, allocations: 12.8 kB / 0.5655 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.4113, allocations: 4.062 kB / 0.5655 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.924e-05/0.4113, allocations: 68.19 kB / 0.5656 GB, free: 15.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.4113, allocations: 0 / 0.5656 GB, free: 15.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002021/0.4115, allocations: 67.41 kB / 0.5656 GB, free: 15.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.4116, allocations: 77.11 kB / 0.5657 GB, free: 15.13 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.531e-05/0.4117, allocations: 89.86 kB / 0.5658 GB, free: 15.04 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.4117, allocations: 29.64 kB / 0.5658 GB, free: 15 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.982e-05/0.4117, allocations: 88.11 kB / 0.5659 GB, free: 14.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.184e-05/0.4117, allocations: 4 kB / 0.5659 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.275e-05/0.4118, allocations: 17.84 kB / 0.5659 GB, free: 14.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.4119, allocations: 314.8 kB / 0.5662 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.154e-05/0.4119, allocations: 0 / 0.5662 GB, free: 14.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.085e-06/0.4119, allocations: 4 kB / 0.5662 GB, free: 14.56 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.962e-05/0.412, allocations: 68.2 kB / 0.5663 GB, free: 14.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.412, allocations: 3.938 kB / 0.5663 GB, free: 14.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.697e-05/0.4121, allocations: 63.39 kB / 0.5664 GB, free: 14.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.4121, allocations: 41.8 kB / 0.5664 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.4121, allocations: 0 / 0.5664 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.4121, allocations: 0 / 0.5664 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.428e-05/0.4121, allocations: 0 / 0.5664 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.4121, allocations: 3.984 kB / 0.5664 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.917e-05/0.4122, allocations: 3.953 kB / 0.5664 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.4122, allocations: 7.984 kB / 0.5664 GB, free: 14.34 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 9.389e-05/0.4123, allocations: 139.4 kB / 0.5665 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.4123, allocations: 4 kB / 0.5665 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.027e-05/0.4123, allocations: 7.156 kB / 0.5666 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.4123, allocations: 0 / 0.5666 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.4123, allocations: 0 / 0.5666 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.4123, allocations: 0 / 0.5666 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002723/0.4126, allocations: 279.3 kB / 0.5668 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4126, allocations: 0 / 0.5668 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.952e-06/0.4126, allocations: 4 kB / 0.5668 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.4126, allocations: 0 / 0.5668 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-06/0.4126, allocations: 0 / 0.5668 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.4126, allocations: 0 / 0.5668 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4126, allocations: 8.031 kB / 0.5668 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001365/0.4127, allocations: 169.1 kB / 0.567 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-06/0.4127, allocations: 0 / 0.567 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.4128, allocations: 4 kB / 0.567 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.182e-05/0.4128, allocations: 0 / 0.567 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.615e-05/0.4128, allocations: 0 / 0.567 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-06/0.4128, allocations: 3.938 kB / 0.567 GB, free: 13.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.508e-05/0.4128, allocations: 87.25 kB / 0.5671 GB, free: 13.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4128, allocations: 0 / 0.5671 GB, free: 13.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004154/0.4133, allocations: 135.5 kB / 0.5672 GB, free: 13.42 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.001146/0.4144, allocations: 0.9162 MB / 0.5681 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001328/0.4145, allocations: 67.34 kB / 0.5682 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.4145, allocations: 0 / 0.5682 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.528e-05/0.4146, allocations: 59.39 kB / 0.5682 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/0.4148, allocations: 128 / 0.5682 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.4159, allocations: 1.215 MB / 0.5694 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.4162, allocations: 0.669 MB / 0.5701 GB, free: 10.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.108e-05/0.4162, allocations: 0 / 0.5701 GB, free: 10.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.443e-05/0.4163, allocations: 11.44 kB / 0.5701 GB, free: 10.32 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.4163, allocations: 0 / 0.5701 GB, free: 10.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03311/0.4494, allocations: 4.664 MB / 0.5746 GB, free: 5.793 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.42, allocations: 0 / 0.5746 GB, free: 5.793 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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.509748916003446]