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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001627/0.001627, allocations: 117.6 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.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.2215/0.2215, allocations: 44.92 MB / 349.6 MB, free: 1.742 MB / 270.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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002701/0.002701, allocations: 64.27 kB / 491.8 MB, free: 29.87 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1594/0.1621, allocations: 64.26 MB / 0.543 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001748/0.1638, allocations: 0.501 MB / 0.5435 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003018/0.1669, allocations: 2.012 MB / 0.5455 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.22e-05/0.1669, allocations: 0 / 0.5455 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.337e-05/0.1669, allocations: 0 / 0.5455 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.34e-06/0.1669, allocations: 0 / 0.5455 GB, free: 1.602 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.001422/0.1683, allocations: 0.4902 MB / 0.5459 GB, free: 1.113 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.301e-05/0.1684, allocations: 0 / 0.5459 GB, free: 1.113 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.836e-05/0.1684, allocations: 0 / 0.5459 GB, free: 1.113 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.51e-05/0.1684, allocations: 4 kB / 0.5459 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.626e-05/0.1685, allocations: 7.984 kB / 0.5459 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.771e-06/0.1685, allocations: 0 / 0.5459 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001068/0.1695, allocations: 0.6593 MB / 0.5466 GB, free: 452 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.086e-05/0.1695, allocations: 3.984 kB / 0.5466 GB, free: 448 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.223e-05/0.1696, allocations: 3.984 kB / 0.5466 GB, free: 444 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005688/0.1701, allocations: 379 kB / 0.547 GB, free: 64 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1701, allocations: 0 / 0.547 GB, free: 64 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1701, allocations: 0 / 0.547 GB, free: 64 kB / 398.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.1702, allocations: 0 / 0.547 GB, free: 64 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.0005191/0.1707, allocations: 408.6 kB / 0.5473 GB, free: 15.61 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1707, allocations: 15.97 kB / 0.5474 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.504e-05/0.1708, allocations: 34.69 kB / 0.5474 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.863e-05/0.1708, allocations: 8.859 kB / 0.5474 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.1709, allocations: 164.4 kB / 0.5476 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.1709, allocations: 384 / 0.5476 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.171, allocations: 8.375 kB / 0.5476 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000101/0.1711, allocations: 33.83 kB / 0.5476 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1711, allocations: 0 / 0.5476 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.1711, allocations: 0 / 0.5476 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.1711, allocations: 0 / 0.5476 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.453e-05/0.1711, allocations: 3.984 kB / 0.5476 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002708/0.1714, allocations: 236.8 kB / 0.5478 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.694e-05/0.1714, allocations: 18.61 kB / 0.5478 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.186e-05/0.1715, allocations: 16.91 kB / 0.5479 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.317e-06/0.1715, allocations: 0 / 0.5479 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.131e-05/0.1715, allocations: 60.27 kB / 0.5479 GB, free: 14.89 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 2.685e-06/0.1715, allocations: 3.984 kB / 0.5479 GB, free: 14.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002127/0.1717, allocations: 75.45 kB / 0.548 GB, free: 14.8 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/0.1718, allocations: 81.11 kB / 0.5481 GB, free: 14.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.823e-05/0.1718, allocations: 89.86 kB / 0.5482 GB, free: 14.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.1719, allocations: 25.7 kB / 0.5482 GB, free: 14.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.516e-05/0.1719, allocations: 80.14 kB / 0.5483 GB, free: 14.49 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.1719, allocations: 7.953 kB / 0.5483 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.677e-05/0.1719, allocations: 9.719 kB / 0.5483 GB, free: 14.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.1721, allocations: 314.8 kB / 0.5486 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.881e-05/0.1721, allocations: 11.98 kB / 0.5486 GB, free: 14.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.352e-06/0.1721, allocations: 0 / 0.5486 GB, free: 14.14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.91e-05/0.1722, allocations: 68.27 kB / 0.5487 GB, free: 14.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.1722, allocations: 3.938 kB / 0.5487 GB, free: 14.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.761e-05/0.1723, allocations: 63.34 kB / 0.5487 GB, free: 13.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.457e-05/0.1723, allocations: 37.69 kB / 0.5488 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1724, allocations: 0 / 0.5488 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.1724, allocations: 0 / 0.5488 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.364e-05/0.1724, allocations: 0 / 0.5488 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.1724, allocations: 4.094 kB / 0.5488 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.599e-05/0.1724, allocations: 0 / 0.5488 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.1724, allocations: 0 / 0.5488 GB, free: 13.93 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 0.0001124/0.1725, allocations: 143.5 kB / 0.5489 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.1725, allocations: 3.938 kB / 0.5489 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.499e-05/0.1726, allocations: 3.125 kB / 0.5489 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.1726, allocations: 7.984 kB / 0.5489 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1726, allocations: 0 / 0.5489 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1726, allocations: 3.938 kB / 0.5489 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002966/0.1729, allocations: 312.2 kB / 0.5492 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1729, allocations: 4 kB / 0.5492 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.426e-06/0.1729, allocations: 0 / 0.5492 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1729, allocations: 0 / 0.5492 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.921e-06/0.1729, allocations: 0 / 0.5492 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1729, allocations: 0 / 0.5492 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1729, allocations: 0 / 0.5492 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001552/0.173, allocations: 177.2 kB / 0.5494 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.838e-05/0.1731, allocations: 81.05 kB / 0.5495 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.1731, allocations: 0 / 0.5495 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.018e-05/0.1731, allocations: 3.984 kB / 0.5495 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.1732, allocations: 4 kB / 0.5495 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.1732, allocations: 3.938 kB / 0.5495 GB, free: 13.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.689e-05/0.1732, allocations: 75.28 kB / 0.5495 GB, free: 13.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1732, allocations: 0 / 0.5495 GB, free: 13.01 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004228/0.1736, allocations: 123.6 kB / 0.5497 GB, free: 12.89 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.001193/0.1748, allocations: 0.9109 MB / 0.5505 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001516/0.175, allocations: 59.41 kB / 0.5506 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.175, allocations: 7.875 kB / 0.5506 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.94e-05/0.175, allocations: 63.39 kB / 0.5507 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001916/0.1752, allocations: 0 / 0.5507 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.1763, allocations: 1.188 MB / 0.5518 GB, free: 10.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.1767, allocations: 0.6727 MB / 0.5525 GB, free: 9.824 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.033e-05/0.1767, allocations: 4.062 kB / 0.5525 GB, free: 9.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.057e-05/0.1767, allocations: 15.38 kB / 0.5525 GB, free: 9.805 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1767, allocations: 0 / 0.5525 GB, free: 9.805 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02838/0.2051, allocations: 4.393 MB / 0.5568 GB, free: 5.492 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.211/8.416, allocations: 7.938 kB / 0.5568 GB, free: 5.484 MB / 414.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.396255062893033]