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.00183/0.00183, allocations: 118.9 kB / 17.83 MB, free: 5.227 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.002106/0.002106, allocations: 198.3 kB / 20.79 MB, free: 2.281 MB / 14.72 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 1.637/1.637, allocations: 207.6 MB / 231.2 MB, free: 4.086 MB / 174.1 MB " [Timeout remaining time 178] 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.3665/0.3665, allocations: 44.22 MB / 327.3 MB, free: 6.691 MB / 254.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002562/0.002562, allocations: 72.5 kB / 462.9 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3769, allocations: 61 MB / 0.5116 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001843/0.3788, allocations: 0.5196 MB / 0.5121 GB, free: 12.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002698/0.3815, allocations: 2.038 MB / 0.5141 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.023e-05/0.3815, allocations: 0 / 0.5141 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.969e-05/0.3815, allocations: 0 / 0.5141 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.452e-06/0.3815, allocations: 0 / 0.5141 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.3829, allocations: 0.4898 MB / 0.5146 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.769e-05/0.383, allocations: 1.656 kB / 0.5146 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.794e-05/0.383, allocations: 1.406 kB / 0.5146 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.963e-05/0.3831, allocations: 0 / 0.5146 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.869e-05/0.3831, allocations: 5.094 kB / 0.5146 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.083e-06/0.3831, allocations: 0 / 0.5146 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009467/0.384, allocations: 0.6625 MB / 0.5153 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.424e-06/0.384, allocations: 0 / 0.5153 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.077e-05/0.3841, allocations: 9.359 kB / 0.5153 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004719/0.3845, allocations: 380.6 kB / 0.5156 GB, free: 10.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3845, allocations: 1.375 kB / 0.5156 GB, free: 10.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3845, allocations: 0 / 0.5156 GB, free: 10.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.3846, allocations: 0 / 0.5156 GB, free: 10.36 MB / 382.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.0003848/0.3849, allocations: 409.3 kB / 0.516 GB, free: 9.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.385, allocations: 13.48 kB / 0.516 GB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.599e-05/0.385, allocations: 192 / 0.516 GB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.941e-05/0.385, allocations: 32.12 kB / 0.5161 GB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/0.3851, allocations: 8.922 kB / 0.5161 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.208e-05/0.3851, allocations: 165.7 kB / 0.5162 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.3852, allocations: 384 / 0.5162 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-06/0.3852, allocations: 1.75 kB / 0.5162 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.441e-05/0.3853, allocations: 37.77 kB / 0.5163 GB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3853, allocations: 0 / 0.5163 GB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.3853, allocations: 3.938 kB / 0.5163 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.3853, allocations: 1.375 kB / 0.5163 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.091e-05/0.3853, allocations: 5.359 kB / 0.5163 GB, free: 9.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001862/0.3855, allocations: 237 kB / 0.5165 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.874e-05/0.3855, allocations: 26.62 kB / 0.5165 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.02e-05/0.3856, allocations: 12.98 kB / 0.5166 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.096e-05/0.3856, allocations: 0 / 0.5166 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.3856, allocations: 57.64 kB / 0.5166 GB, free: 9.242 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.3856, allocations: 0 / 0.5166 GB, free: 9.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002135/0.3858, allocations: 75.77 kB / 0.5167 GB, free: 9.168 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.3858, allocations: 81.05 kB / 0.5168 GB, free: 9.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.103e-05/0.3859, allocations: 91.23 kB / 0.5168 GB, free: 8.973 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.723e-06/0.3859, allocations: 25.7 kB / 0.5169 GB, free: 8.941 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.155e-05/0.3859, allocations: 80.14 kB / 0.5169 GB, free: 8.859 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.3859, allocations: 5.328 kB / 0.5169 GB, free: 8.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-05/0.3859, allocations: 12.47 kB / 0.517 GB, free: 8.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.934e-05/0.386, allocations: 320.3 kB / 0.5173 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.184e-05/0.386, allocations: 5.359 kB / 0.5173 GB, free: 8.516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.073e-06/0.386, allocations: 1.375 kB / 0.5173 GB, free: 8.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.197e-05/0.386, allocations: 69.7 kB / 0.5173 GB, free: 8.438 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.386, allocations: 0 / 0.5173 GB, free: 8.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.867e-05/0.3861, allocations: 66.06 kB / 0.5174 GB, free: 8.371 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.3861, allocations: 35.03 kB / 0.5174 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.3861, allocations: 0 / 0.5174 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.3861, allocations: 2.094 kB / 0.5174 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.465e-05/0.3862, allocations: 4 kB / 0.5174 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.3862, allocations: 0 / 0.5174 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.607e-05/0.3862, allocations: 4 kB / 0.5174 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.3862, allocations: 1.938 kB / 0.5174 GB, free: 8.328 MB / 382.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 5.843e-05/0.3862, allocations: 142 kB / 0.5176 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.309e-05/0.3863, allocations: 0 / 0.5176 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.457e-05/0.3863, allocations: 4.469 kB / 0.5176 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.3863, allocations: 3.984 kB / 0.5176 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3863, allocations: 1.5 kB / 0.5176 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3863, allocations: 7.984 kB / 0.5176 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.3865, allocations: 293.9 kB / 0.5179 GB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3865, allocations: 4.969 kB / 0.5179 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.246e-06/0.3865, allocations: 0 / 0.5179 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3865, allocations: 1.156 kB / 0.5179 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-06/0.3865, allocations: 3.938 kB / 0.5179 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.3865, allocations: 1.156 kB / 0.5179 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3865, allocations: 0 / 0.5179 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.606e-05/0.3866, allocations: 183.5 kB / 0.5181 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.723e-05/0.3866, allocations: 77.11 kB / 0.5181 GB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.3866, allocations: 2.594 kB / 0.5181 GB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.731e-05/0.3866, allocations: 3.984 kB / 0.5181 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.768e-05/0.3867, allocations: 1.125 kB / 0.5181 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.3867, allocations: 1.344 kB / 0.5181 GB, free: 7.527 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.287e-05/0.3867, allocations: 79.22 kB / 0.5182 GB, free: 7.449 MB / 382.1 MB Notification: Performance of sort global known variables: time 4e-08/0.3867, allocations: 0 / 0.5182 GB, free: 7.449 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004366/0.3871, allocations: 129.3 kB / 0.5183 GB, free: 7.414 MB / 382.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.0009075/0.388, allocations: 0.9074 MB / 0.5192 GB, free: 6.617 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000108/0.3881, allocations: 58.62 kB / 0.5193 GB, free: 6.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3881, allocations: 0 / 0.5193 GB, free: 6.555 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.478e-05/0.3882, allocations: 67.7 kB / 0.5194 GB, free: 6.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/0.3883, allocations: 5.125 kB / 0.5194 GB, free: 6.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000773/0.3891, allocations: 1.196 MB / 0.5205 GB, free: 5.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001064/0.3892, allocations: 0.6791 MB / 0.5212 GB, free: 4.555 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.032e-05/0.3892, allocations: 0 / 0.5212 GB, free: 4.555 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.955e-05/0.3893, allocations: 10.5 kB / 0.5212 GB, free: 4.547 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3893, allocations: 0 / 0.5212 GB, free: 4.547 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.4112, allocations: 4.426 MB / 0.5255 GB, free: 304 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.646/9.057, allocations: 8.656 kB / 0.5255 GB, free: 296 kB / 382.1 MB " [Timeout remaining time 651] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/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: 12.16508311999496]