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.00163/0.00163, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001923/0.001923, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.494/1.494, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2563/0.2563, allocations: 46.93 MB / 357.1 MB, free: 10.34 MB / 286.1 MB " [Timeout remaining time 180] 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.00193/0.00193, allocations: 63.91 kB / 0.4909 GB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1468, allocations: 65.99 MB / 0.5554 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001889/0.1487, allocations: 0.4971 MB / 0.5559 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003177/0.1519, allocations: 2.041 MB / 0.5578 GB, free: 3.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.074e-05/0.1519, allocations: 4 kB / 0.5578 GB, free: 3.316 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.464e-05/0.1519, allocations: 0 / 0.5578 GB, free: 3.316 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.092e-06/0.1519, allocations: 0 / 0.5578 GB, free: 3.316 MB / 414.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.001477/0.1534, allocations: 0.49 MB / 0.5583 GB, free: 2.828 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.552e-05/0.1535, allocations: 8 kB / 0.5583 GB, free: 2.82 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.463e-05/0.1535, allocations: 0 / 0.5583 GB, free: 2.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.577e-05/0.1535, allocations: 3.938 kB / 0.5583 GB, free: 2.816 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.108e-05/0.1535, allocations: 0 / 0.5583 GB, free: 2.816 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.815e-06/0.1535, allocations: 8 kB / 0.5583 GB, free: 2.809 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.1546, allocations: 0.6668 MB / 0.559 GB, free: 2.141 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.694e-06/0.1546, allocations: 0 / 0.559 GB, free: 2.141 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.098e-05/0.1546, allocations: 3.984 kB / 0.559 GB, free: 2.137 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005841/0.1552, allocations: 387.1 kB / 0.5594 GB, free: 1.758 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1552, allocations: 0 / 0.5594 GB, free: 1.758 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1552, allocations: 7.938 kB / 0.5594 GB, free: 1.75 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.1552, allocations: 0 / 0.5594 GB, free: 1.75 MB / 414.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.0005064/0.1557, allocations: 408.6 kB / 0.5598 GB, free: 1.297 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1558, allocations: 8.031 kB / 0.5598 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.278e-05/0.1558, allocations: 50.62 kB / 0.5598 GB, free: 1.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.471e-05/0.1559, allocations: 0.9375 kB / 0.5598 GB, free: 1.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.156, allocations: 160.4 kB / 0.56 GB, free: 1.035 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.156, allocations: 4.375 kB / 0.56 GB, free: 1.031 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.156, allocations: 384 / 0.56 GB, free: 1.031 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.1561, allocations: 33.83 kB / 0.56 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.1561, allocations: 0 / 0.56 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.1561, allocations: 7.969 kB / 0.56 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.1561, allocations: 4 kB / 0.56 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.978e-05/0.1562, allocations: 0 / 0.56 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002567/0.1564, allocations: 236.8 kB / 0.5603 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.238e-05/0.1565, allocations: 26.59 kB / 0.5603 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.666e-05/0.1565, allocations: 12.92 kB / 0.5603 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.1565, allocations: 0 / 0.5603 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.821e-05/0.1566, allocations: 56.27 kB / 0.5603 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.1566, allocations: 4 kB / 0.5603 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002017/0.1568, allocations: 75.27 kB / 0.5604 GB, free: 500 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.1568, allocations: 85.23 kB / 0.5605 GB, free: 396 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.547e-05/0.1569, allocations: 89.86 kB / 0.5606 GB, free: 296 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.1569, allocations: 25.7 kB / 0.5606 GB, free: 264 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.071e-05/0.1569, allocations: 80.14 kB / 0.5607 GB, free: 180 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.157, allocations: 7.891 kB / 0.5607 GB, free: 172 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.157, allocations: 17.72 kB / 0.5607 GB, free: 148 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1572, allocations: 314.8 kB / 0.561 GB, free: 15.83 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.397e-05/0.1572, allocations: 4 kB / 0.561 GB, free: 15.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.1572, allocations: 4 kB / 0.561 GB, free: 15.82 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.31e-05/0.1572, allocations: 64.27 kB / 0.5611 GB, free: 15.74 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1572, allocations: 3.938 kB / 0.5611 GB, free: 15.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.976e-05/0.1573, allocations: 71.33 kB / 0.5612 GB, free: 15.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.1574, allocations: 33.7 kB / 0.5612 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.1574, allocations: 0 / 0.5612 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.1574, allocations: 4 kB / 0.5612 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.335e-05/0.1574, allocations: 0 / 0.5612 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.1574, allocations: 0 / 0.5612 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.498e-05/0.1574, allocations: 4.094 kB / 0.5612 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-06/0.1574, allocations: 0 / 0.5612 GB, free: 15.61 MB / 430.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.608e-05/0.1575, allocations: 141.7 kB / 0.5613 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.388e-05/0.1575, allocations: 3.984 kB / 0.5613 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.314e-05/0.1576, allocations: 3.125 kB / 0.5613 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.1576, allocations: 0 / 0.5613 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1576, allocations: 4 kB / 0.5613 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.1576, allocations: 4 kB / 0.5613 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002817/0.1579, allocations: 308.2 kB / 0.5616 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1579, allocations: 0 / 0.5616 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.297e-06/0.1579, allocations: 0 / 0.5616 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.1579, allocations: 4 kB / 0.5616 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.1579, allocations: 0 / 0.5616 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1579, allocations: 0 / 0.5616 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1579, allocations: 0 / 0.5616 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001367/0.158, allocations: 165.2 kB / 0.5618 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.412e-05/0.1581, allocations: 89.16 kB / 0.5619 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.1581, allocations: 0 / 0.5619 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.951e-05/0.1581, allocations: 7.875 kB / 0.5619 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.738e-05/0.1581, allocations: 0 / 0.5619 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.1581, allocations: 7.938 kB / 0.5619 GB, free: 14.77 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.241e-05/0.1582, allocations: 75.28 kB / 0.562 GB, free: 14.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1582, allocations: 0 / 0.562 GB, free: 14.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004176/0.1586, allocations: 139.5 kB / 0.5621 GB, free: 14.56 MB / 430.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.001114/0.1597, allocations: 0.9128 MB / 0.563 GB, free: 13.62 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001187/0.1598, allocations: 67.39 kB / 0.5631 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1598, allocations: 3.938 kB / 0.5631 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.251e-05/0.1599, allocations: 59.41 kB / 0.5631 GB, free: 13.47 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/0.1601, allocations: 2.031 kB / 0.5631 GB, free: 13.47 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.1611, allocations: 1.195 MB / 0.5643 GB, free: 12.19 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.1614, allocations: 0.6768 MB / 0.5649 GB, free: 11.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.041e-05/0.1615, allocations: 0 / 0.5649 GB, free: 11.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.996e-05/0.1615, allocations: 15.5 kB / 0.565 GB, free: 11.47 MB / 430.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1615, allocations: 0 / 0.565 GB, free: 11.47 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02801/0.1895, allocations: 4.524 MB / 0.5694 GB, free: 7.016 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.164/8.354, allocations: 11.88 kB / 0.5694 GB, free: 7.008 MB / 430.1 MB " [Timeout remaining time 652] (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: 11.575567733001662]