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.001271/0.001271, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.00263/0.00263, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.434/1.434, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.2262/0.2262, allocations: 46.93 MB / 361.6 MB, free: 4.273 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 64.05 kB / 0.4969 GB, free: 7.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3127, allocations: 66.03 MB / 0.5614 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001597/0.3143, allocations: 0.5009 MB / 0.5619 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002871/0.3172, allocations: 2.062 MB / 0.5639 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.525e-05/0.3172, allocations: 0 / 0.5639 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.432e-05/0.3172, allocations: 0 / 0.5639 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.23e-06/0.3172, allocations: 0 / 0.5639 GB, free: 1.926 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.001373/0.3186, allocations: 0.5023 MB / 0.5644 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.376e-05/0.3186, allocations: 0 / 0.5644 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.859e-05/0.3187, allocations: 4 kB / 0.5644 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.427e-05/0.3187, allocations: 4 kB / 0.5644 GB, free: 1.418 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.77e-05/0.3187, allocations: 7.922 kB / 0.5644 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.991e-06/0.3187, allocations: 0 / 0.5644 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001095/0.3198, allocations: 0.7348 MB / 0.5651 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.562e-06/0.3198, allocations: 0 / 0.5651 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.947e-05/0.3198, allocations: 4 kB / 0.5651 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005222/0.3203, allocations: 395.1 kB / 0.5655 GB, free: 292 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3203, allocations: 0 / 0.5655 GB, free: 292 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3203, allocations: 0 / 0.5655 GB, free: 292 kB / 398.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.3203, allocations: 0 / 0.5655 GB, free: 292 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.0004237/0.3208, allocations: 343.4 kB / 0.5658 GB, free: 15.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.3208, allocations: 8.031 kB / 0.5659 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.403e-05/0.3208, allocations: 192 / 0.5659 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.767e-05/0.3209, allocations: 38.7 kB / 0.5659 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.666e-05/0.3209, allocations: 4.938 kB / 0.5659 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.266e-05/0.321, allocations: 110.5 kB / 0.566 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.886e-06/0.321, allocations: 384 / 0.566 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.321, allocations: 384 / 0.566 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.333e-05/0.3211, allocations: 37.58 kB / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.3211, allocations: 0 / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.3211, allocations: 4 kB / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.3211, allocations: 0 / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.985e-05/0.3211, allocations: 8 kB / 0.566 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002215/0.3213, allocations: 204 kB / 0.5662 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.908e-05/0.3214, allocations: 22.61 kB / 0.5663 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.732e-05/0.3214, allocations: 16.84 kB / 0.5663 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-06/0.3214, allocations: 0 / 0.5663 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.146e-05/0.3215, allocations: 64.27 kB / 0.5663 GB, free: 15.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.3215, allocations: 0 / 0.5663 GB, free: 15.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001802/0.3217, allocations: 75.33 kB / 0.5664 GB, free: 15.21 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.3217, allocations: 81.05 kB / 0.5665 GB, free: 15.11 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.665e-05/0.3218, allocations: 89.86 kB / 0.5666 GB, free: 15.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.3218, allocations: 29.7 kB / 0.5666 GB, free: 14.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.054e-05/0.3218, allocations: 80.14 kB / 0.5667 GB, free: 14.9 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.626e-06/0.3218, allocations: 0 / 0.5667 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.839e-05/0.3218, allocations: 13.84 kB / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.322, allocations: 314.8 kB / 0.567 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.718e-05/0.322, allocations: 7.938 kB / 0.567 GB, free: 14.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.04e-05/0.322, allocations: 7.984 kB / 0.567 GB, free: 14.55 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.865e-05/0.3221, allocations: 68.2 kB / 0.5671 GB, free: 14.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.3221, allocations: 0 / 0.5671 GB, free: 14.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.715e-05/0.3222, allocations: 63.41 kB / 0.5671 GB, free: 14.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.752e-05/0.3222, allocations: 33.69 kB / 0.5672 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.3222, allocations: 8.094 kB / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.3222, allocations: 0 / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.59e-05/0.3222, allocations: 4 kB / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.3222, allocations: 0 / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.92e-05/0.3222, allocations: 3.953 kB / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.3223, allocations: 0 / 0.5672 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.8e-05/0.3224, allocations: 143.4 kB / 0.5673 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.575e-05/0.3224, allocations: 4 kB / 0.5673 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.782e-05/0.3224, allocations: 3.156 kB / 0.5673 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.3224, allocations: 4 kB / 0.5673 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3224, allocations: 4 kB / 0.5673 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.3224, allocations: 0 / 0.5673 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002515/0.3227, allocations: 267.4 kB / 0.5676 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3227, allocations: 4 kB / 0.5676 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.617e-06/0.3227, allocations: 0 / 0.5676 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.3227, allocations: 0 / 0.5676 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.3227, allocations: 0 / 0.5676 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.3227, allocations: 0 / 0.5676 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3227, allocations: 0 / 0.5676 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001346/0.3228, allocations: 185.1 kB / 0.5678 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.587e-06/0.3228, allocations: 0 / 0.5678 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.021e-05/0.3228, allocations: 0 / 0.5678 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.51e-05/0.3229, allocations: 4 kB / 0.5678 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.554e-05/0.3229, allocations: 3.938 kB / 0.5678 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.3229, allocations: 3.984 kB / 0.5678 GB, free: 13.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.222e-05/0.3229, allocations: 79.22 kB / 0.5679 GB, free: 13.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3229, allocations: 4.031 kB / 0.5679 GB, free: 13.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004438/0.3234, allocations: 127.6 kB / 0.568 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.001058/0.3244, allocations: 0.9135 MB / 0.5689 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001021/0.3245, allocations: 63.39 kB / 0.5689 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3245, allocations: 4 kB / 0.5689 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.393e-05/0.3246, allocations: 59.41 kB / 0.569 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.0001786/0.3247, allocations: 0 / 0.569 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009498/0.3257, allocations: 1.211 MB / 0.5702 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.326, allocations: 0.669 MB / 0.5708 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.328e-06/0.326, allocations: 0 / 0.5708 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.268e-05/0.326, allocations: 15.42 kB / 0.5708 GB, free: 10.32 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.326, allocations: 0 / 0.5708 GB, free: 10.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.3493, allocations: 4.689 MB / 0.5754 GB, free: 5.773 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.37, allocations: 16.56 kB / 0.5754 GB, free: 5.766 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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.221199749037623]