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.001378/0.001378, allocations: 115.2 kB / 17.13 MB, free: 5.93 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.001477/0.001477, allocations: 212 kB / 20.09 MB, free: 2.977 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.503/1.503, allocations: 207.6 MB / 230.5 MB, free: 4.047 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.3617/0.3617, allocations: 44.23 MB / 326.6 MB, free: 6.859 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="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: 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.002684/0.002684, allocations: 63.91 kB / 462.2 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3179, allocations: 61.01 MB / 0.5109 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001879/0.3197, allocations: 0.5148 MB / 0.5114 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00267/0.3224, allocations: 2.041 MB / 0.5134 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.598e-05/0.3224, allocations: 0 / 0.5134 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.787e-05/0.3224, allocations: 3.938 kB / 0.5134 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.002e-06/0.3224, allocations: 0 / 0.5134 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001226/0.3237, allocations: 495.2 kB / 0.5139 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.78e-05/0.3237, allocations: 9.438 kB / 0.5139 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.034e-05/0.3238, allocations: 5.359 kB / 0.5139 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.814e-05/0.3238, allocations: 0 / 0.5139 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.781e-05/0.3238, allocations: 5.359 kB / 0.5139 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.791e-06/0.3238, allocations: 0 / 0.5139 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009418/0.3247, allocations: 0.6577 MB / 0.5146 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.915e-06/0.3247, allocations: 0 / 0.5146 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.3248, allocations: 5.766 kB / 0.5146 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005193/0.3253, allocations: 382 kB / 0.5149 GB, free: 10.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3253, allocations: 0 / 0.5149 GB, free: 10.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3253, allocations: 0 / 0.5149 GB, free: 10.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.3253, allocations: 0 / 0.5149 GB, free: 10.29 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.0004434/0.3257, allocations: 409.3 kB / 0.5153 GB, free: 9.859 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.3258, allocations: 17.47 kB / 0.5154 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.099e-05/0.3259, allocations: 36.12 kB / 0.5154 GB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.751e-05/0.3259, allocations: 0.9375 kB / 0.5154 GB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.487e-05/0.3259, allocations: 161.8 kB / 0.5155 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.326, allocations: 384 / 0.5155 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.326, allocations: 5.688 kB / 0.5155 GB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.3261, allocations: 33.95 kB / 0.5156 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3261, allocations: 3.984 kB / 0.5156 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.3261, allocations: 0 / 0.5156 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.3261, allocations: 5.312 kB / 0.5156 GB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.459e-05/0.3261, allocations: 13.31 kB / 0.5156 GB, free: 9.555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002177/0.3263, allocations: 225 kB / 0.5158 GB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.505e-05/0.3264, allocations: 30.62 kB / 0.5158 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.239e-05/0.3264, allocations: 8.984 kB / 0.5159 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.3264, allocations: 0 / 0.5159 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.3265, allocations: 61.64 kB / 0.5159 GB, free: 9.172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.193e-06/0.3265, allocations: 0 / 0.5159 GB, free: 9.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002086/0.3267, allocations: 70.39 kB / 0.516 GB, free: 9.102 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.3267, allocations: 78.48 kB / 0.5161 GB, free: 9.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.263e-05/0.3267, allocations: 93.8 kB / 0.5161 GB, free: 8.906 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.216e-06/0.3268, allocations: 27.08 kB / 0.5162 GB, free: 8.875 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.213e-05/0.3268, allocations: 80.14 kB / 0.5162 GB, free: 8.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.3268, allocations: 9.328 kB / 0.5163 GB, free: 8.785 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.727e-05/0.3268, allocations: 12.59 kB / 0.5163 GB, free: 8.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.879e-05/0.3269, allocations: 318.8 kB / 0.5166 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.378e-05/0.3269, allocations: 2.75 kB / 0.5166 GB, free: 8.449 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.515e-06/0.3269, allocations: 1.375 kB / 0.5166 GB, free: 8.449 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.699e-05/0.3269, allocations: 65.77 kB / 0.5166 GB, free: 8.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3269, allocations: 3.938 kB / 0.5166 GB, free: 8.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.295e-05/0.327, allocations: 69.02 kB / 0.5167 GB, free: 8.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.327, allocations: 31.2 kB / 0.5167 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.327, allocations: 5.469 kB / 0.5167 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.327, allocations: 3.984 kB / 0.5167 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.451e-05/0.3271, allocations: 3.938 kB / 0.5167 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.3271, allocations: 1.375 kB / 0.5168 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.52e-05/0.3271, allocations: 0 / 0.5168 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-06/0.3271, allocations: 1.375 kB / 0.5168 GB, free: 8.258 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.587e-05/0.3271, allocations: 138.2 kB / 0.5169 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.3272, allocations: 5.359 kB / 0.5169 GB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.869e-05/0.3272, allocations: 7.125 kB / 0.5169 GB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.3272, allocations: 4 kB / 0.5169 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3272, allocations: 1.375 kB / 0.5169 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3272, allocations: 4 kB / 0.5169 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/0.3274, allocations: 298 kB / 0.5172 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3274, allocations: 1.375 kB / 0.5172 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.406e-06/0.3274, allocations: 3.938 kB / 0.5172 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.3274, allocations: 3.938 kB / 0.5172 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.3274, allocations: 1.375 kB / 0.5172 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.3274, allocations: 0 / 0.5172 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3274, allocations: 5.359 kB / 0.5172 GB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.336e-05/0.3275, allocations: 167 kB / 0.5174 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.623e-05/0.3275, allocations: 81.09 kB / 0.5174 GB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.3275, allocations: 5.312 kB / 0.5174 GB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.664e-05/0.3275, allocations: 5.375 kB / 0.5175 GB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.615e-05/0.3276, allocations: 1.375 kB / 0.5175 GB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.3276, allocations: 0 / 0.5175 GB, free: 7.457 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.639e-05/0.3276, allocations: 80.69 kB / 0.5175 GB, free: 7.379 MB / 382.1 MB Notification: Performance of sort global known variables: time 4e-08/0.3276, allocations: 0 / 0.5175 GB, free: 7.379 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004397/0.328, allocations: 131.7 kB / 0.5177 GB, free: 7.34 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.000927/0.3289, allocations: 0.9029 MB / 0.5185 GB, free: 6.547 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001133/0.3291, allocations: 62.91 kB / 0.5186 GB, free: 6.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3291, allocations: 0 / 0.5186 GB, free: 6.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.45e-05/0.3291, allocations: 60.52 kB / 0.5187 GB, free: 6.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001899/0.3293, allocations: 4.062 kB / 0.5187 GB, free: 6.414 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007189/0.33, allocations: 1.207 MB / 0.5198 GB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.3301, allocations: 0.6715 MB / 0.5205 GB, free: 4.484 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.163e-05/0.3301, allocations: 0 / 0.5205 GB, free: 4.484 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.614e-05/0.3301, allocations: 14.53 kB / 0.5205 GB, free: 4.473 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3301, allocations: 0 / 0.5205 GB, free: 4.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02597/0.3561, allocations: 4.381 MB / 0.5248 GB, free: 228 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.117/8.473, allocations: 4.641 kB / 0.5248 GB, free: 224 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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: 11.409654329996556]