Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0007823/0.0007823, allocations: 80.48 kB / 19.92 MB, free: 4.633 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.0007981/0.0007981, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8462/0.8462, allocations: 158.6 MB / 185 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1293/0.1293, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.176e-06/3.176e-06, allocations: 0 / 406.8 MB, free: 2.254 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.871e-05/4.189e-05, allocations: 6.281 kB / 406.8 MB, free: 2.246 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002193/0.002235, allocations: 0.5064 MB / 407.3 MB, free: 1.746 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003097/0.005333, allocations: 1.932 MB / 409.3 MB, free: 15.79 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.396e-05/0.005356, allocations: 3.938 kB / 409.3 MB, free: 15.79 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 2.402e-05/0.00538, allocations: 0 / 409.3 MB, free: 15.79 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 1.185e-05/0.005392, allocations: 4 kB / 409.3 MB, free: 15.78 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001652/0.007044, allocations: 0.5061 MB / 409.8 MB, free: 15.27 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 8.137e-05/0.007125, allocations: 0 / 409.8 MB, free: 15.27 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.473e-05/0.00718, allocations: 3.984 kB / 409.8 MB, free: 15.27 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.573e-05/0.007226, allocations: 4 kB / 409.8 MB, free: 15.27 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.695e-05/0.007253, allocations: 0 / 409.8 MB, free: 15.27 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.917e-06/0.007262, allocations: 0 / 409.8 MB, free: 15.27 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00121/0.008472, allocations: 0.651 MB / 410.4 MB, free: 14.61 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 1.499e-05/0.008487, allocations: 0 / 410.4 MB, free: 14.61 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 3.036e-05/0.008517, allocations: 4 kB / 410.5 MB, free: 14.61 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007021/0.009219, allocations: 482.9 kB / 410.9 MB, free: 14.14 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.009222, allocations: 3.938 kB / 410.9 MB, free: 14.13 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.009224, allocations: 0 / 410.9 MB, free: 14.13 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.00923, allocations: 0 / 410.9 MB, free: 14.13 MB / 394.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.0005/0.00973, allocations: 335.5 kB / 411.3 MB, free: 13.77 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.00978, allocations: 12.03 kB / 411.3 MB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.586e-05/0.009846, allocations: 30.75 kB / 411.3 MB, free: 13.72 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.009881, allocations: 0.9375 kB / 411.3 MB, free: 13.72 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.601e-05/0.009957, allocations: 113.7 kB / 411.4 MB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.00997, allocations: 4.312 kB / 411.4 MB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.009985, allocations: 384 / 411.4 MB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001393/0.01012, allocations: 55.97 kB / 411.5 MB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.01013, allocations: 192 / 411.5 MB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.01014, allocations: 4.125 kB / 411.5 MB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.01015, allocations: 7.984 kB / 411.5 MB, free: 13.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.561e-05/0.01019, allocations: 33.7 kB / 411.5 MB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002559/0.01044, allocations: 200 kB / 411.7 MB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.029e-05/0.01052, allocations: 56.25 kB / 411.8 MB, free: 13.15 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.348e-05/0.01056, allocations: 38.61 kB / 411.8 MB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.29e-05/0.01057, allocations: 3.938 kB / 411.8 MB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.302e-05/0.01061, allocations: 56.27 kB / 411.9 MB, free: 13.03 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.664e-06/0.01061, allocations: 0 / 411.9 MB, free: 13.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002318/0.01085, allocations: 130.7 kB / 412 MB, free: 12.88 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.01091, allocations: 85.11 kB / 412.1 MB, free: 12.78 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.958e-05/0.01097, allocations: 97.92 kB / 412.2 MB, free: 12.67 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.01098, allocations: 25.7 kB / 412.2 MB, free: 12.64 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.587e-05/0.01101, allocations: 80.14 kB / 412.3 MB, free: 12.56 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.649e-05/0.01103, allocations: 3.953 kB / 412.3 MB, free: 12.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.654e-05/0.01106, allocations: 13.72 kB / 412.3 MB, free: 12.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.503e-05/0.01115, allocations: 314.8 kB / 412.6 MB, free: 12.22 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.706e-05/0.01118, allocations: 33.69 kB / 412.6 MB, free: 12.18 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.666e-05/0.0112, allocations: 25.7 kB / 412.7 MB, free: 12.15 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.083e-05/0.01125, allocations: 68.27 kB / 412.7 MB, free: 12.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.01125, allocations: 0 / 412.7 MB, free: 12.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.713e-05/0.01134, allocations: 101 kB / 412.8 MB, free: 11.95 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.01138, allocations: 33.7 kB / 412.9 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.01138, allocations: 0 / 412.9 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.0114, allocations: 4 kB / 412.9 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.265e-05/0.01142, allocations: 0 / 412.9 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.01143, allocations: 0 / 412.9 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.897e-05/0.01145, allocations: 8 kB / 412.9 MB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.01146, allocations: 0 / 412.9 MB, free: 11.9 MB / 394.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 8.581e-05/0.01154, allocations: 135.5 kB / 413 MB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.529e-05/0.01156, allocations: 7.938 kB / 413 MB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.045e-05/0.01158, allocations: 7.188 kB / 413 MB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.01158, allocations: 0 / 413 MB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.01159, allocations: 0 / 413 MB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.01159, allocations: 0 / 413 MB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.01185, allocations: 301 kB / 413.3 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.01185, allocations: 0 / 413.3 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.305e-06/0.01186, allocations: 0 / 413.3 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.01187, allocations: 3.938 kB / 413.3 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.01187, allocations: 4 kB / 413.3 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.01188, allocations: 3.984 kB / 413.3 MB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.01188, allocations: 4.031 kB / 413.3 MB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001146/0.01199, allocations: 190.9 kB / 413.5 MB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.006e-06/0.012, allocations: 3.984 kB / 413.5 MB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.165e-05/0.01201, allocations: 0 / 413.5 MB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.562e-05/0.01204, allocations: 4 kB / 413.5 MB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.982e-05/0.01206, allocations: 0 / 413.5 MB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.01206, allocations: 3.938 kB / 413.5 MB, free: 11.14 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.092e-05/0.01209, allocations: 75.28 kB / 413.6 MB, free: 11.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01209, allocations: 0 / 413.6 MB, free: 11.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003477/0.01244, allocations: 135.6 kB / 413.7 MB, free: 10.93 MB / 394.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.0009502/0.01339, allocations: 0.9861 MB / 414.7 MB, free: 9.906 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001348/0.01353, allocations: 114.8 kB / 414.8 MB, free: 9.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01353, allocations: 96 / 414.8 MB, free: 9.77 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.683e-05/0.01357, allocations: 93.03 kB / 414.9 MB, free: 9.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.01372, allocations: 4 kB / 414.9 MB, free: 9.656 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008695/0.01459, allocations: 1.333 MB / 416.2 MB, free: 8.203 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.558e-05/0.01463, allocations: 59.3 kB / 416.3 MB, free: 8.125 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.32e-05/0.01464, allocations: 0 / 416.3 MB, free: 8.125 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.187e-05/0.01468, allocations: 12.5 kB / 416.3 MB, free: 8.109 MB / 394.7 MB Notification: Performance of SimCode: time 3.81e-07/0.01468, allocations: 0 / 416.3 MB, free: 8.109 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.03974, allocations: 5.096 MB / 421.4 MB, free: 2.98 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.772/6.812, allocations: 23.97 kB / 421.4 MB, free: 2.957 MB / 394.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 8.788245826028287]