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.0008673/0.0008673, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008502/0.0008502, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8865/0.8865, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.2336/0.2336, allocations: 32.79 MB / 293.5 MB, free: 1.215 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 3.938 kB / 439.6 MB, free: 4.273 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.838e-05/1.986e-05, allocations: 6.844 kB / 439.6 MB, free: 4.266 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001095/0.001114, allocations: 0.5055 MB / 440.1 MB, free: 3.766 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.003075, allocations: 1.934 MB / 442 MB, free: 1.809 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.674e-05/0.003091, allocations: 0 / 442 MB, free: 1.809 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.591e-05/0.003107, allocations: 0 / 442 MB, free: 1.809 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.003114, allocations: 0 / 442 MB, free: 1.809 MB / 410.7 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.001122/0.004236, allocations: 0.4995 MB / 442.5 MB, free: 1.309 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.676e-05/0.004282, allocations: 0 / 442.5 MB, free: 1.309 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.544e-05/0.004318, allocations: 3.984 kB / 442.5 MB, free: 1.305 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.544e-05/0.004343, allocations: 4 kB / 442.5 MB, free: 1.301 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.709e-05/0.00436, allocations: 0 / 442.5 MB, free: 1.301 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.294e-06/0.004368, allocations: 4 kB / 442.5 MB, free: 1.297 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007462/0.005114, allocations: 0.6704 MB / 443.2 MB, free: 0.625 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.794e-06/0.005122, allocations: 0 / 443.2 MB, free: 0.625 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.869e-05/0.00514, allocations: 4 kB / 443.2 MB, free: 0.6211 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004732/0.005614, allocations: 490.8 kB / 443.7 MB, free: 144 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.005616, allocations: 0 / 443.7 MB, free: 144 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.005618, allocations: 0 / 443.7 MB, free: 144 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.005622, allocations: 0 / 443.7 MB, free: 144 kB / 410.7 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.1699/0.1756, allocations: 341.5 kB / 444 MB, free: 46.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.1756, allocations: 10.53 kB / 444 MB, free: 46.41 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.906e-05/0.1757, allocations: 34.02 kB / 444.1 MB, free: 46.37 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.141e-05/0.1757, allocations: 0.9375 kB / 444.1 MB, free: 46.37 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.252e-05/0.1757, allocations: 105.2 kB / 444.2 MB, free: 46.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.1758, allocations: 384 / 444.2 MB, free: 46.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.915e-06/0.1758, allocations: 3.25 kB / 444.2 MB, free: 46.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.84e-05/0.1759, allocations: 66.33 kB / 444.2 MB, free: 46.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.1759, allocations: 192 / 444.2 MB, free: 46.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.752e-06/0.1759, allocations: 0.5625 kB / 444.2 MB, free: 46.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.1759, allocations: 3.938 kB / 444.2 MB, free: 46.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.14e-05/0.1759, allocations: 28.08 kB / 444.3 MB, free: 46.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000168/0.1761, allocations: 207.6 kB / 444.5 MB, free: 45.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.748e-05/0.1761, allocations: 53.56 kB / 444.5 MB, free: 45.87 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.161e-05/0.1761, allocations: 38.5 kB / 444.6 MB, free: 45.83 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.736e-06/0.1761, allocations: 3.031 kB / 444.6 MB, free: 45.83 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.1762, allocations: 61.33 kB / 444.6 MB, free: 45.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 7.42e-07/0.1762, allocations: 0 / 444.6 MB, free: 45.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.000171/0.1763, allocations: 122.9 kB / 444.7 MB, free: 45.63 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.489e-05/0.1764, allocations: 80.8 kB / 444.8 MB, free: 45.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.266e-05/0.1764, allocations: 90.55 kB / 444.9 MB, free: 45.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.1e-06/0.1764, allocations: 26.92 kB / 444.9 MB, free: 45.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.352e-06/0.1764, allocations: 80.89 kB / 445 MB, free: 45.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/0.1764, allocations: 5.469 kB / 445 MB, free: 45.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.21e-05/0.1764, allocations: 17.33 kB / 445 MB, free: 45.31 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.771e-05/0.1764, allocations: 312.2 kB / 445.3 MB, free: 45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.228e-05/0.1765, allocations: 32.44 kB / 445.4 MB, free: 44.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.738e-06/0.1765, allocations: 31.48 kB / 445.4 MB, free: 44.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.843e-05/0.1765, allocations: 70.45 kB / 445.5 MB, free: 44.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1765, allocations: 2.344 kB / 445.5 MB, free: 44.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.063e-05/0.1765, allocations: 94.88 kB / 445.6 MB, free: 44.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.1766, allocations: 40.53 kB / 445.6 MB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1766, allocations: 3.312 kB / 445.6 MB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.1766, allocations: 1.969 kB / 445.6 MB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.737e-05/0.1766, allocations: 0 / 445.6 MB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1766, allocations: 0 / 445.6 MB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.514e-05/0.1766, allocations: 2.562 kB / 445.6 MB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.1766, allocations: 0 / 445.6 MB, free: 44.73 MB / 410.7 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 3.958e-05/0.1767, allocations: 136.9 kB / 445.7 MB, free: 44.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.1767, allocations: 3.125 kB / 445.7 MB, free: 44.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.795e-05/0.1767, allocations: 14.5 kB / 445.8 MB, free: 44.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1767, allocations: 1.469 kB / 445.8 MB, free: 44.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1767, allocations: 0 / 445.8 MB, free: 44.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1767, allocations: 0 / 445.8 MB, free: 44.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.1768, allocations: 307.4 kB / 446.1 MB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1768, allocations: 0 / 446.1 MB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.166e-06/0.1768, allocations: 3.281 kB / 446.1 MB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1768, allocations: 2.656 kB / 446.1 MB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.26e-06/0.1768, allocations: 0 / 446.1 MB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1768, allocations: 0 / 446.1 MB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1768, allocations: 0 / 446.1 MB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.227e-05/0.1769, allocations: 196.2 kB / 446.3 MB, free: 44.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.168e-06/0.1769, allocations: 0 / 446.3 MB, free: 44.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.005e-05/0.1769, allocations: 2.531 kB / 446.3 MB, free: 44.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.399e-05/0.1769, allocations: 5.094 kB / 446.3 MB, free: 44.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.474e-05/0.1769, allocations: 6.141 kB / 446.3 MB, free: 44.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.1769, allocations: 3.359 kB / 446.3 MB, free: 44.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.566e-06/0.177, allocations: 75.28 kB / 446.4 MB, free: 43.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.177, allocations: 1.812 kB / 446.4 MB, free: 43.98 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003747/0.1773, allocations: 129.4 kB / 446.5 MB, free: 43.98 MB / 410.7 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.0006756/0.178, allocations: 0.9929 MB / 447.5 MB, free: 43.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.922e-05/0.1781, allocations: 119.8 kB / 447.6 MB, free: 43.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1781, allocations: 0 / 447.6 MB, free: 43.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.456e-05/0.1781, allocations: 88.45 kB / 447.7 MB, free: 43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001364/0.1782, allocations: 10.08 kB / 447.7 MB, free: 43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005254/0.1788, allocations: 1.335 MB / 449 MB, free: 41.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.824e-05/0.1788, allocations: 57.39 kB / 449.1 MB, free: 41.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.014e-05/0.1788, allocations: 0 / 449.1 MB, free: 41.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.349e-05/0.1788, allocations: 11.34 kB / 449.1 MB, free: 41.59 MB / 410.7 MB Notification: Performance of SimCode: time 4.71e-07/0.1788, allocations: 0 / 449.1 MB, free: 41.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01888/0.1977, allocations: 5.258 MB / 454.3 MB, free: 40.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.075/7.273, allocations: 8.812 kB / 454.4 MB, free: 40.46 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/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: 9.171396421268582]